R
richard
I have created a line in code in a form for a command button from which I am
getting an error saying that I have a 'missing operator in the query
expression'. I created this by copying from Access Help and can see no
problems
All the fields referenced in the expression are numeric except SalesID which
is Autonumber
Could someone please help me with this
Private Sub cmdAddNewWithCurrentJob_Click()
DoCmd.GoToRecord , , acNewRec
Me.ProjectID = DLookup("[ProjectID]", "tblSalesDetails", "[SalesID] =" &
Me.[SalesID])
Exit_cmdAddNewWithCurrentJob_Click:
Exit Sub
Err_cmdAddNewWithCurrentJob_Click:
MsgBox Err.Description
Resume Exit_cmdAddNewWithCurrentJob_Click
End Sub
Thanks
Richard
getting an error saying that I have a 'missing operator in the query
expression'. I created this by copying from Access Help and can see no
problems
All the fields referenced in the expression are numeric except SalesID which
is Autonumber
Could someone please help me with this
Private Sub cmdAddNewWithCurrentJob_Click()
DoCmd.GoToRecord , , acNewRec
Me.ProjectID = DLookup("[ProjectID]", "tblSalesDetails", "[SalesID] =" &
Me.[SalesID])
Exit_cmdAddNewWithCurrentJob_Click:
Exit Sub
Err_cmdAddNewWithCurrentJob_Click:
MsgBox Err.Description
Resume Exit_cmdAddNewWithCurrentJob_Click
End Sub
Thanks
Richard