Hello.
I need to create an application that gets data from access database (or puts data there, too)
I've created a project, and a database. Linked the database to project and can succesfully get whatever database has to vb6.
However, I need to be able to have internal calculations in access.
The problem is as follows:
There's a total number of cars. Eg. 20
There's available number of cars. Eg. 20 (currently)
In the vb6 form, there's a field where you can enter how many cars you want. I need to be able to do that, so that access automatically reduces the number of available cars by the number the user has entered in the vb6 form.
How would I do that?
Also, rather than having to use the stupid looking database control in my app, I would like to use a combobox to choose whatever car model I please, and the form would get the data from the database. The data object looks silly and is stupid to use.
HELP!
//edit:
Alternatively I could do it like this.
I have a textbox in vb, which is linked to text field in access.
The textbox contains names of people that want to have the cars, it's a multiline textbox, in which every name has it's own line.
If I could calculate the number of lines within vb, it would be possible to say how many cars are available.
Like this: availablecars = totalcars - NumberOfRowsInReserversTextBox
//edit2:
And why does my application, if I click somewhere in the form except textbox start ignoring the mouse. If I click somewhere besides textbox, I can't click anywhere anymore.
//edit3:
Ok, I now succesfully have a line counter, which in return tells me the correct amount of reservers.
Now the only problem that remains is that why does my application have the problems with the mouse