|
-
Aug 5th, 2005, 10:59 AM
#1
Thread Starter
Member
Why wrong?
Private Sub Voeg_nieuwe_oplossing_toe_Click()
CurrentDb.Execute "INSERT INTO TblOplossingen (Oplossing) VALUES ('" & TypnieuweOplossing.Value & "')"
IDMAX = "Select MAX ID from TblOplossingen"
CurrentDb.Execute "INSERT INTO TblKruis (IDFout, IDOplossing) VALUES ('" & KiesFout.Value & "', '" & IDMAX.Value & "')"
End Sub
The IDMAX is the autonumberfield in a table.
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
|