Hi All,
I am in the middle of creating a database for maintenance scheduling and I have hit a bit of a brick wall.
I have a main form that will be used to say when and what maintenance activities have been done, but I am trying to copy some of that information to another table when I click on my command button.
This is how far I have got with the code... I need help trying to word the code to add the information I have selected to a new record in a table called "Archive".
Any help would be greatly appreciated,
/Sandy
p.s. I need to have this database completed by tomorrow for our NADCAP audit...
I am in the middle of creating a database for maintenance scheduling and I have hit a bit of a brick wall.
I have a main form that will be used to say when and what maintenance activities have been done, but I am trying to copy some of that information to another table when I click on my command button.
This is how far I have got with the code... I need help trying to word the code to add the information I have selected to a new record in a table called "Archive".
Code:
Private Sub cmdComplete1_Click()
Dim LDate As Date
LDate = DateAdd("m", 1, [Me.txtNextDate1])
Me.txtLastDate1.Value = Me.txtNextDate1.OldValue
Dim Mach As Variant
Dim Check As Variant
Dim NDate As Variant
Dim DateCom As Variant
Dim Sign As Variant
Dim Note As Variant
Mach = Me!txtMachine.Value
Check = "Monthly"
NDate = Me!NextDate1.Value
DateCom = Me!txtDate.Value
Sign = Me!cboPersonnel1.Value
Note = Me!txtNote1.Value
End Sub
/Sandy
p.s. I need to have this database completed by tomorrow for our NADCAP audit...
Comment