Hi all
i have an unbound form with the following code which works as it should
I also need to add other text fields from the unbound form to another table but can't seem to work out how to do it.
Any help would be great.
Ian
i have an unbound form with the following code which works as it should
Code:
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("tbl_Courses", dbOpenDynaset)
With rst
.AddNew
rst!DateCreated = DateCreated
rst!Originator = Originator
rst!CourseTitle = CourseTitle
rst!StartDate = StartDate
rst!EndDate = EndDate
rst!CourseStatus = CourseStatus.Column(0)
rst!CourseType = CourseType.Column(0)
rst!CourseTrainer = CourseTrainer.Column(0)
rst!location = location
rst!CourseFormat = CourseFormat.Column(0)
rst!Client = Client
rst!NumberOfDelegates = NumberOfDelegates.Column(0)
Call ResetForm
MsgBox ("This Course has been added to the Database!"), , "In House Course Added"
.Update
End With
I also need to add other text fields from the unbound form to another table but can't seem to work out how to do it.
Any help would be great.
Ian