A
Augustus
hi,
Why is it in Access, I can't use this:
strSQL = "SELECT InqNo FROM tblInqData"
But I have to use:
strSQL = "SELECT tblInqData.InqNo FROM tblInqData"
The strSQL is then passed to:
Set db = CurrentDb()
Set rsSet = db.OpenRecordset(strSQL, dbOpenDynaset)
If rsSet.EOF Then
strNumber = "001"
Else
strNumber = CStr(CInt(rsSet(InqNo)) + 1)
Thanks
Why is it in Access, I can't use this:
strSQL = "SELECT InqNo FROM tblInqData"
But I have to use:
strSQL = "SELECT tblInqData.InqNo FROM tblInqData"
The strSQL is then passed to:
Set db = CurrentDb()
Set rsSet = db.OpenRecordset(strSQL, dbOpenDynaset)
If rsSet.EOF Then
strNumber = "001"
Else
strNumber = CStr(CInt(rsSet(InqNo)) + 1)
Thanks