M
miss031
I have a lookup table for dates, consisting of just the primary key (date_ID)
and the date (date_). I look up and select dates from combos whose source is
this table, but I cannot figure out the syntax for a notinlist code to add
dates to the combos. Here is the notinlist code that I use with all my other
text combos:
______________________________________
Dim sqlAddmake As String, Response As Integer
DoCmd.SetWarnings False
If IsNull(Me.Text2) = False Then
sqlAddmake = "Insert Into tbl_lkp_dates ([date_]) values (#" &
Me.Text2 & "#)"
CurrentDb.Execute sqlAddmake
Response = acDataErrAdded
Else
Response = acDataErrContinue
End If
DoCmd.SetWarnings True
and the date (date_). I look up and select dates from combos whose source is
this table, but I cannot figure out the syntax for a notinlist code to add
dates to the combos. Here is the notinlist code that I use with all my other
text combos:
______________________________________
Dim sqlAddmake As String, Response As Integer
DoCmd.SetWarnings False
If IsNull(Me.Text2) = False Then
sqlAddmake = "Insert Into tbl_lkp_dates ([date_]) values (#" &
Me.Text2 & "#)"
CurrentDb.Execute sqlAddmake
Response = acDataErrAdded
Else
Response = acDataErrContinue
End If
DoCmd.SetWarnings True