Hi,
Ok yes I was being a muppet, I had input the sql without telling what table the field was in. Fixed that now. As the text box could be is a string, at the end of the sql what do I need type to get it to recognize the string
sQRY = "SELECT tblCSATData.JobNo FROM tblCSATData WHERE tblCSATData.JobNo = " & usrFrmCustInput.txtJobNum
as there seems to be a syntax error, not sure if its me having a bad day and not seeing simple things.
Quote:
cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\YourPath\DatabaseName.mdb;"
|
I used that file path as its easier than writing in the massive file path I have on the PC, not that daft :-)