473,486 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Selecting a file in VB6

21 New Member
Hi All
I have a problem with VB6 in that I need to modify a progam written by someone else for me who I used to work with,
The program uses a database in access and to change to a different year another copy of the program must be sent out and installed and I am looking for a way for one copy of the program to be installed and on running the program it asks for the database file (which could be the latest version or indeed a previous year) and gives the opportunity to search on the hard drive for it ( in VB.Net I think it would be 'OpenFileDialog' ) but I can't seem to find this in VB6, it may be there just hidden from view or may be called something else in the older version.
Any ideas would be much appreciated

Thanks Rob
Mar 21 '07 #1
4 1246
vijaydiwakar
579 Contributor
Hi All
I have a problem with VB6 in that I need to modify a progam written by someone else for me who I used to work with,
The program uses a database in access and to change to a different year another copy of the program must be sent out and installed and I am looking for a way for one copy of the program to be installed and on running the program it asks for the database file (which could be the latest version or indeed a previous year) and gives the opportunity to search on the hard drive for it ( in VB.Net I think it would be 'OpenFileDialog' ) but I can't seem to find this in VB6, it may be there just hidden from view or may be called something else in the older version.
Any ideas would be much appreciated

Thanks Rob
go for Comman Dialog box in vb
Mar 21 '07 #2
ansumansahu
149 New Member
Hi All
I have a problem with VB6 in that I need to modify a progam written by someone else for me who I used to work with,
The program uses a database in access and to change to a different year another copy of the program must be sent out and installed and I am looking for a way for one copy of the program to be installed and on running the program it asks for the database file (which could be the latest version or indeed a previous year) and gives the opportunity to search on the hard drive for it ( in VB.Net I think it would be 'OpenFileDialog' ) but I can't seem to find this in VB6, it may be there just hidden from view or may be called something else in the older version.
Any ideas would be much appreciated

Thanks Rob

Yes you can use a common dialog box to implement this functionality.

thanks
ansuman
Mar 21 '07 #3
miroku800
21 New Member
Thanks for that, I see how it works.
Now all I have to do is get the result from the common dialog to be read by the program
Mar 21 '07 #4
debasisdas
8,127 Recognized Expert Expert
simply use Common Dialog Control for this functonality.
Can also use this for color and font also
Mar 22 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
3466
by: Lawrence Oluyede | last post by:
I've some problems with filtering out a specific element by the following xml snippet (is part of a bigger xml document): <entry> <link...
0
1210
by: Kim | last post by:
Hello, I am selecting data from a text file in the following format: INSERT INTO SELECT * FROM " & sSource & " IN '' " & _ "'text;Database=" & sPath & ";FMT=Delimited;HDR=No' " & _ "WHERE =...
1
1953
by: Kim | last post by:
Hello, I am selecting data from a text file with the following statement: "INSERT INTO SELECT * FROM " & sSource & " IN '' " & _ "'text;Database=" & sPath & ";FMT=Delimited;HDR=No' " & _...
4
4699
by: Sami | last post by:
I hope someone will tell me how to do this without having to do any VB as I know nothing in that area. I am a rank beginner in using Access. I have created a database consisting of student...
1
2550
by: Ramesh | last post by:
hi, I am selecting fields from three table for manupulating data and i want to display total number of records selected. But i am always getting -1 value, eventhough 1000 of records are selected....
6
2043
by: aaj | last post by:
Hi all I use a data adapter to read numerous tables in to a dataset. The dataset holds tables which in turn holds full details of the records i.e. keys, extra colums etc.. In some cases I...
3
15703
by: larry mckay | last post by:
anyone have the code to select and listview item or row (subitems) after a doubleclick event from a listview. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate...
2
7478
by: Tymbow | last post by:
I'm building a web application that is analogous to the Windows XP file explorer in function. The left column contains a TreeView, and the right column a DataGrid populated by selecting TreeView...
0
979
by: Robert Bravery | last post by:
Hi all, Currently I am selecting a worksheet in an XL file by index value as in: objSheet = (Worksheet)objBooks.Worksheets; How can i select it by sheet tab name Thanks Robert
0
10979
by: jeremy | last post by:
Had a tough time figuring this one out and couldn't find a good solution, so I thought I would post this and hopefully it will help someone out. When using DataBind to dynamically bind a list to...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.