HI I'm using Access 2000 front end on SQL Server backend. I am trying to get a query to execute in VBA code using the LIKE keyword but am having problems with the syntax. Can anyone help? this is my query:
DoCmd.RunSQL "update tblJob set jbCurrentlyBilling = 1 from dbo.tblBook INNER JOIN " & _
" dbo.tblJob ON dbo.tblBook.bkISBN = dbo.tblJob.jbISBN where tblJob.jbBillTag = 1 and tblBook.bkClient = '" & clientToBill & "' and jbISBN like & '" & poToBill & "*" & "'"
Where poToBill is the first five characters of the ISBN number
Any help appreciated,
Thanks
Steph
DoCmd.RunSQL "update tblJob set jbCurrentlyBilling = 1 from dbo.tblBook INNER JOIN " & _
" dbo.tblJob ON dbo.tblBook.bkISBN = dbo.tblJob.jbISBN where tblJob.jbBillTag = 1 and tblBook.bkClient = '" & clientToBill & "' and jbISBN like & '" & poToBill & "*" & "'"
Where poToBill is the first five characters of the ISBN number
Any help appreciated,
Thanks
Steph