473,609 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
+ 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 1251
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
3481
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 href="http://www.blogger.com/atom/5281182/108809850419059234" rel="service.edit" title="test" type="application/x.atom+xml"/> <author> <name>Lawrence</name> </author> <issued>2004-06-24T19:34:04+02:00</issued>
0
1220
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 = '01'" Variable names are used for the file name, etc. But the problem lies in the "SELECT *". We have strings that are larger than 254
1
1961
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' " & _ "WHERE = '01'" It works correctly EXCEPT when the record length is more than 254, it truncates the record. Is there a way to expand the length of string
4
4714
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 athletes.  I have now learned how to join two different tables in a query so that I might generate a report. Specifically, student athletes at a community college are required to graduate with an AA or AS degree.  Consequently, various steps are in...
1
2557
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. Below is my code. here strSelectSQL value is strSelectSQL = "Select emp.Empno, emp.FirstName, emp.LastName, emp.DB, emp.DOJ,emp.Grade,emp.yearofexperience,
6
2051
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 need to use parts of the tables in datagrids, and here is where my problem lies
3
15712
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 in USENET...get rewarded for it!
2
7491
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 nodes. The TreeView populates dynamically as there are a significant number of nodes. The DataGrid displays both the items and the nodes from the TreeView. Using the explorer analogy this means the TreeView shows folders, and the DataGrid folders...
0
984
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
10996
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 the CheckBoxList control in ASP .NET, I had a hard time figuring out how to dynamically select the items that needed to be selected. Specifically, I was displaying checkboxes for Roles, and I wanted to check the boxes of the roles that were...
0
8588
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8556
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8236
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8410
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6068
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5526
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4037
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2541
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 we have to send another system

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.