I have the following statement
Dim strSQL As String
strSQL = “SELECT tblAllocate.ID, tblAllocate.JobID, tblAllocate.Dept, tblAllocate.Hours, tblAllocate.Location, tblAllocate.Comments FROM tblAllocate WHERE (((tblAllocate.Emp)=[Forms]![frmJobAllocationPage]![cboEmployees]) AND ((tblAllocate.Completed)=False)) ORDER BY tblAllocate.Priority WITH OWNERACCESS OPTION;”
Set rst = CurrentDb.OpenRecordset(strSQL)
but it throws an error and when I “watch” the strSQL expression it reports the value as:
“SELECT tblAllocate.ID, tblAllocate.JobID, tblAllocate.Dept, tblAllocate.Hours, tblAllocate.Location, tblAllocate.Comments FROM tblAllocate WHERE (((tblAllocate.Emp)=[Forms]![frmJobAllocationPage]![cboEmployees]) AND ((tblAllocate.Completed)=False)) O
It has been truncated! Does anybody have any ideas as to why? I have shut the program down and restarted it and also tried a reboot.