Article View: microsoft.public.vb.addins
Article #2Newbie needs help
From: Jeff P. Morgan
Date: Thu, 19 Nov 1998 00:00
Date: Thu, 19 Nov 1998 00:00
45 lines
3267 bytes
3267 bytes
I just started a new job and am taking over from a previous programmer. I am using VB4 because they are concerned with some problems arising with the present program if they convert to VB6 (which the other programmer here is starting to use (a C programmer). I have 3 areas that I need advice on. 1. In the present setup of their programs they prefer to use an ini file to reference the database including variables [SETUP] DB Path=C:\NCRS\DATA\ DB Name=TRACKING.MDB Tracking Table=NCRS_TRACK Station Table=Station Numbers DataType Table=Data Types they prefer this because then they can go into the ini file and change where the database is stored. Is there a simpler way to to do this (eg. just have the database path in the ini and code to populate a datacontrol or is there a way to do it from within the application so the user can set or change it without doing an ini.)? 2. I need to search a particular table to retrieve 1 or a few records to and get the values from from one column to retrieve those values (later used to get images). To narrow down the records I plan to use combo boxes to select the 1 to 5 values for other fields in the table to enter in a query and bring back the results. Is there a way to use this to update the datacontrol and inturn the vbSpread control that contains all the records that are initially populated with all records on startup? 3. With the multiple combo boxes on the form is there a way to have the vbSpread control display the results depending on which value is selected in the combo box (do I update the datacontrol that populates the vbSpread or is there a better approach)? I know this is a really dumb question but where do you generally put SQL statements ? Sorry for making this so long and perhaps senseless but I am new to this position. Any advice would be greatly appreciated (either simple or super detailed) Thanks alot! Jeff P. Morgan jeffpmorgan@netscape.net
Technical Details
Message-ID:
<36543C98.F0F37F6E@netscape.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103d3d,24faad4f5291b3f7,start X-Google-Attributes: gid103d3d,public X-Google-Thread: faef3,24faad4f5291b3f7,start X-Google-Attributes: gidfaef3,public X-Google-Thread: 104586,24faad4f5291b3f7,start X-Google-Attributes: gid104586,public X-Google-Thread: 10b213,24faad4f5291b3f7,start X-Google-Attributes: gid10b213,public X-Google-Thread: 105c2e,24faad4f5291b3f7,start X-Google-Attributes: gid105c2e,public X-Google-Thread: 10be7f,24faad4f5291b3f7,start X-Google-Attributes: gid10be7f,public X-Google-Thread: 11493c,24faad4f5291b3f7,start X-Google-Attributes: gid11493c,public X-Google-Thread: 114664,24faad4f5291b3f7,start X-Google-Attributes: gid114664,public From: "Jeff P. Morgan" <jeffpmorgan@netscape.net> Subject: Newbie needs help Date: 1998/11/19 Message-ID: <36543C98.F0F37F6E@netscape.net> X-Deja-AN: 413536264 Content-Transfer-Encoding: 7bit Organization: OPTEX Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: microsoft.public.vb.addins,microsoft.public.vb.controls,microsoft.public.vb.controls.databound,microsoft.public.vb.database,microsoft.public.vb.database.dao,microsoft.public.vb.database.odbc,microsoft.public.vb.general.discussion,fj.lang.visualbasic