Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query error>?

Status
Not open for further replies.

mikeba1

Programmer
Jan 2, 2005
235
GB
I have developed a small access database in 2003.
Runs fine in that environment.
Moved it to a 2007/2010 environment and get the following error when running a report.

query1.patient (enter parameter value)

there is no query1

any ideas?
thanks in advance
 
The report uses qrynoofpatients1 as its source


Qrynoofpatients

SELECT RoomBookings.Appdate, RoomBookings.Patient
FROM RoomBookings
WHERE (((RoomBookings.Appdate) Between [Forms]![frmListBookingsforaPeriod]![fromdate] And [Forms]![frmListBookingsforaPeriod]![todate]) AND ((RoomBookings.Patient)>""));


Qrynoofpatients1

SELECT qrynoofpatients.Patient, 1 AS noof
FROM qrynoofpatients
GROUP BY qrynoofpatients.Patient, 1;
 
Perhaps the first query is not saved as Qrynoofpatients, since you moved it.
 
Have tried various solutions, the latest creating brand new queries on the client pc, similar error.
Will rethink solution.
 
What about the ControlSource of the Controls ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
This only happens on the client pc (access 2010)
I have copied the datasource to my pc (2003) and it works fine.

Curious said Alice

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top