|
-
Feb 2nd, 2000, 07:20 PM
#1
Thread Starter
Junior Member
There is this form that has textboxes which saves to the database.
Each time this form is opened at runtime, previuosly saved data appear on the textboxes.
What can I do to open a run a clean form?
thank you!
--------
bon
-
Feb 2nd, 2000, 07:33 PM
#2
Lively Member
Do you bind the textboxes to a datacontrol and the datacontrol to the database ?
If you have, the only way so far that I have seen that solves the problem is to use a recordset and not the datacontrol.
I'll ask around here. Somebody had the same problem. Maybee they know.
------------------
Have Fun.
Maartin.
[email protected]
-----------------------
-
Feb 2nd, 2000, 07:56 PM
#3
Thread Starter
Junior Member
Yes Maartin, my textboxes have been binded to a datacontrol and the datacontrol to the database.
Does this has to do with the EOF or BOF functions?, because the problem is that my form does not refresh.
Please help.
-
Feb 2nd, 2000, 08:02 PM
#4
Lively Member
Bon.
I will ask the juniours in office they also use data controls for their projects. I tend to prefer useing recordsets, more controls less problems. I know one of them had this same problem, if they fixed the error and still use the datacontrol, I will give you the answer, other wise sorry sad news but recordsets will be the answer from me.
------------------
Have Fun.
Maartin.
[email protected]
-----------------------
-
Feb 2nd, 2000, 08:27 PM
#5
-
Feb 2nd, 2000, 10:03 PM
#6
Frenzied Member
I agree that data controls are a bit old hat these days but when you may find when you start an AddNew
ie; DataControl1.Recordset.AddNew
the boxes will clear as they a ready for a new record.
(don't forget to do a .Update on the "SAVE" button or the data will be lost)
------------------
Mark "Buzby" Beeton
VB Developer
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|