|
-
Aug 5th, 2005, 09:57 AM
#1
Thread Starter
Member
add new record in table in access
Hi,
I have some troubles with code in access vb.
Well, I made it already possible to add new records with textbox and button with the code:
CurrentDb.Execute "INSERT INTO TblOplossingen (Oplossing) VALUES ('" & TypnieuweOplossing.Value & "')"
Now in my TblOplossingen I have the field autonumberfield.
So when I push on the button, the new record will be placed and also a new number in the autonumberfield.
But this is not the only thing I want.
When I push on the button, I want too that the autonumberfield of my new record will be added in another table. And this while the new number of the autonumberfield of my new record is not visible in the form.
Has anybody a solution for that problem?
greetz
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
|