vb 6.0

Posted on 2003-03-06
Medium Priority
Last Modified: 2012-06-27
hi experts,
     1.I have done a application project in V.B 6.0 with Ms-access as backend, i am using ado control ,i have used seagate crystal report 7.0 for reports and  use MSRDC control, now i suppose to modify a datatype for a  field, now i got a zero value for the modified field
     2.i got a report with a windows mode,but i need it in Dos mode(printing)
     3. i would like to know how to retrieve a volume number of the system or the unique hard disk number, for  avoiding a piroted of my project.
           if U know answer for above plz mail me.
Question by:arumugaganesh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

phenotype earned 400 total points
ID: 8082835

Try adding this API call and wrapper to a module.

Public Declare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long

Public Function GetVolumeNumber(strDriveLetter As String) As Long
On Error GoTo Error_H

Dim strVolumeName As String
Dim lngSerialNumber As Long
Dim lngComponentLength As Long
Dim lngSystemFlags As Long
Dim strFileSystemName As String
Dim lngFileSystemSize As Long
Dim lngRetVal As Long

strDriveLetter = UCase(strDriveLetter) & "\"

strVolumeName = Space(255)
lngRetVal = GetVolumeInformation(strDriveLetter, strVolumeName, 255, lngSerialNumber, lngComponentLength, lngSystemFlags, strFileSystemName, lngFileSystemSize)

GetVolumeNumber = lngSerialNumber

Exit Function

GetVolumeNumber = 0

End Function

Expert Comment

ID: 8083997
is this one question or three?

Author Comment

ID: 8093178
thanks a lot

Expert Comment

ID: 8900570
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
LVL 49

Expert Comment

ID: 9074194
Moderator, my recommended disposition is:

    Accept phenotype's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question