chaufschild
MIS
I am running the following code on an Office XP database in Office 2000 file format:
Private Sub AccountManager_AfterUpdate()
Dim strDLR As String
Dim strSQL As String
Dim strAcct As String
Dim strDate As String
strDate = Format(Date, mm - DD - yyyy)
strAcct = Me.AccountManager.Value
strDLR = Me.DLR_NUM.Value
strSQL = "INSERT INTO DealerRepLog (ChangeDate, Dealer, NewAcctRep) VALUES (" & strDate & ", " & strDLR & ", " & strAcct & ""
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
End Sub
When I run the event, I get a enter parameter box. The message in the parameter box is the correct value of strDLR. The value entered into this box is then inserted into the Dealer field of the table. I am confused as to why it is behaving this way. Thanks in advance.
Chris Haufschild
chaufschild@hotmail.com
Private Sub AccountManager_AfterUpdate()
Dim strDLR As String
Dim strSQL As String
Dim strAcct As String
Dim strDate As String
strDate = Format(Date, mm - DD - yyyy)
strAcct = Me.AccountManager.Value
strDLR = Me.DLR_NUM.Value
strSQL = "INSERT INTO DealerRepLog (ChangeDate, Dealer, NewAcctRep) VALUES (" & strDate & ", " & strDLR & ", " & strAcct & ""
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
End Sub
When I run the event, I get a enter parameter box. The message in the parameter box is the correct value of strDLR. The value entered into this box is then inserted into the Dealer field of the table. I am confused as to why it is behaving this way. Thanks in advance.
Chris Haufschild
chaufschild@hotmail.com