|
-
Feb 17th, 2006, 11:04 AM
#1
Thread Starter
New Member
-
Feb 17th, 2006, 11:13 AM
#2
Re: Adding to Databases
Welcome to the forums. 
Post the .AddNew code that you have that isn't working.
-
Feb 17th, 2006, 11:18 AM
#3
Thread Starter
New Member
Re: Adding to Databases
Thanks for the welcome! Looks like i'll be around here often the way i'm going on! lol
datDatabase.Recordset.AddNew
datDatabase.Recordset!First_Name = txt_Regfirstname
datDatabase.Recordset!Surname = txt_Regsurname
datDatabase.Recordset!Username = txt_RegID
datDatabase.Recordset!Password = txt_RegPass
The above may be entirely incorrect because our tutor didn't really go into any detail on how to add through VB6, i've just tried to understand what's been on websites.
-
Feb 17th, 2006, 11:24 AM
#4
Re: Adding to Databases
VB Code:
datDatabase.Recordset.AddNew
datDatabase.Recordset!First_Name = txt_Regfirstname
datDatabase.Recordset!Surname = txt_Regsurname
datDatabase.Recordset!Username = txt_RegID
datDatabase.Recordset!Password = txt_RegPass
datDatabase.Recordset.Update '[b]add this line[/b]
-
Feb 17th, 2006, 11:28 AM
#5
Thread Starter
New Member
Re: Adding to Databases
ah, works like a charm now! Thanks a lot!
-
Feb 17th, 2006, 11:41 AM
#6
Re: Adding to Databases
 Originally Posted by Leigh
ah, works like a charm now!  Thanks a lot! 
No problem and good luck on your project.
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
|