wojnicztrust
Registered User.
- Local time
- Today, 12:39
- Joined
- Jan 21, 2013
- Messages
- 15
I found code to fill a table from form using button (blank field in a form) and it works for first field in form
but another field should put date in to an another table which is in relations with first table (one to many) and i don't know what code should be to this relations.
Please help!
Code:
Private Sub Save_Click()
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("name of table")
With rst
rst.AddNew
!name field in a table = Me![name field in a form]
rst.Update
.Close
End With
End Sub
Please help!