If i understand what you want to do, you want to show data in a grid and allow the user to modify data by pressing on a button.
Maybe you can try this if you are using a grid bound to a data source:
form2:
private sub form_load()
txtName = form1.dbgrid1.columns(0).value
txtLastName =...
you might try to use the "change" event instead of the "keypress". if you press backspace, change and keydown will be fired while i'm almost sure keypress will not.
I think that DAO (what you uses) uses Access 97 databases and ADO, Access 2000 databases.
Maybe you can switch to ADO if the MDAC 2.6 solution didn't work...
good luck :)
for each x in controls will also try to move your common dlg ctrl. I guess that we can't move controls like timers and common dlg in run time.
You can try to replace the line:
If Not (TypeOf ctl Is VScrollBar) Then
by:
If Not (TypeOf ctl Is VScrollBar or TypeOf ctl Is CommonDialog) Then
good...
"form.hide" does only hide the form, it is still in memory while "unload form" does remove it from memory.
If you want to perform the "form_load" without the form to become visible, you can call "load form"
If your controls are bound to the database, you...
I would like to know if there is a way to know if a program is installed on a computer.
My program have to open a .pdf file. If Adobe Acrobat is installed, it will open the document, else it will start the install program of Acrobat.
My program will be executed from a CD and launched with an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.