Tip Bank

DevX - Software Development Resource

RecordCount Incorrect

Question: VB reports the wrong number of records from an Access database with the RecordCount property. The same query to dBase files reports the correct number of records. What is

DevX - Software Development Resource

Executing DOS Commands

Question: How can I run the following “SHELL” command in VB? It works fine in PowerBasic, but VB 3.0 doesn’t like it.SHELL “DIR *.BKP > FILES.LST”Any ideas? Answer: Try this:Shell

DevX - Software Development Resource

Detecting Row Selection in TrueGrid

Question: I have a database (Access) with 6 tables. I created a form for each table. I created an Apex True DBGrid for the database using the first table for

DevX - Software Development Resource

Validating Input Data in LostFocus

Question: I have two fields on the screen that I use to enter a date range. I want to check the entry on the lost focus with IsDate, and in

DevX - Software Development Resource

Connecting Network Drives

Question: When I issue the command ‘NET USE’ in msdos, I get a message that a specific drive is disconnected, how can I connect that drive in VB? If I

DevX - Software Development Resource

Providing Multiple Colors

Question: I having trouble using strings and text. I am writing a document creation system and all the text in between the “” char. would be red. All other text

DevX - Software Development Resource

Closing a Data Control

Question: I am using the data control through the Standard Version of Visual Basic 4.0. The data control is linked to a table in our database and when I try

DevX - Software Development Resource

Sharing Data Between Forms

Question: I have a VB app that uses multiple forms. On the first form, I entercustomer information. The other forms calculate the cost of my services tomy customer. I would

DevX - Software Development Resource

Multiple Simultaneous Table Inserts

Question: I am programming a multiple table database and can’t figure out to link each table together so that when a person is posting data to one table that the