W
WSF
Access97
As part of the loading routine of a report front end I have the following:
DoCmd.RunSQL "SELECT tbljobdata.JobId as JobNo , tbljobs.CustomerId
as Acct, tbljobs.[Date Received] as DateIn, tbljobs.OrderNo,
tbljobs.Make, tbljobs.Model INTO tblHistory IN '" & ReportsTempDBase &
"' From tbljobs WHERE (((tbljobs.[Date
Received])>=DateSerial(Year(Date()),Month(Date())-6,1)));"
This takes 6 months of selected fields from records from the main data
file [tbljobdata] (linked) and creates a table [tblHistory] in a
separate datafile.
This has worked fine on several PC's for months. But I have this one
pesky PC's recently built (not by me!) and the routine gets stuck here
with an error regarding the function Date. When the module completes and
the main form opens all the date fields in the forms display #Name.
There is no conflict in the fields' naming conventions etc - I am wise
to that and pretty careful.
I have checked the references on the subject PC and they appear fine.
Driving home, I did think that it could be the Access97 install (maybe
some option left out) or the Office install may not have the SR1/2 done.
I'll try that tomorrow, but would appreciate any help.
I reckoned on a missing reference but there is none.
Cheers,
Bill
As part of the loading routine of a report front end I have the following:
DoCmd.RunSQL "SELECT tbljobdata.JobId as JobNo , tbljobs.CustomerId
as Acct, tbljobs.[Date Received] as DateIn, tbljobs.OrderNo,
tbljobs.Make, tbljobs.Model INTO tblHistory IN '" & ReportsTempDBase &
"' From tbljobs WHERE (((tbljobs.[Date
Received])>=DateSerial(Year(Date()),Month(Date())-6,1)));"
This takes 6 months of selected fields from records from the main data
file [tbljobdata] (linked) and creates a table [tblHistory] in a
separate datafile.
This has worked fine on several PC's for months. But I have this one
pesky PC's recently built (not by me!) and the routine gets stuck here
with an error regarding the function Date. When the module completes and
the main form opens all the date fields in the forms display #Name.
There is no conflict in the fields' naming conventions etc - I am wise
to that and pretty careful.
I have checked the references on the subject PC and they appear fine.
Driving home, I did think that it could be the Access97 install (maybe
some option left out) or the Office install may not have the SR1/2 done.
I'll try that tomorrow, but would appreciate any help.
I reckoned on a missing reference but there is none.
Cheers,
Bill