Hello,
I am trying to create a dynamic report that can come from two different record source.
One the open event of the report I have this SQL stament, it's giving me errors 'Excpected end of statment'
this is it:
Thanks,
Sylvain
I am trying to create a dynamic report that can come from two different record source.
One the open event of the report I have this SQL stament, it's giving me errors 'Excpected end of statment'
this is it:
Code:
me.RecordSource = "SELECT from tblJobs.JobNumber, tblRooms.RoomName, tblRooms.RoomID, tblJobs.FirstName, tblJobs.LastName, tblClients.Address, tblJobs.Telephone, tblJobs.POnumber, tblRooms.UpperDoor, tblRooms.Finish, tblRooms.CounterStyle, tblRooms.CounterColor, tblJobs.RequiredDate, tblJobs.ShipAddress, tblJobs.ShipPhone, tblRooms.Handle1, tblRooms.Handle2, tblRooms.Handle3, tblRooms.Handle4, tblRooms.Edge, tblJobs.Fax, tblRooms.LowerDoor, tblRooms.Drawer, tblJobs.ShipVia, tblJobs.Terms, tblJobs.Contact, tblJobs.OnDelivery, tblJobs.WONotes, tblClients.City, tblClients.Province, tblClients.PostalCode, tblRooms.Print, tblJobs.ShipProvince, tblJobs.ShipPostal, tblJobs.ShipCity, tblJobs.ShipNotes" _
FROM ((tblClients
INNER JOIN tblJobs _
ON tblClients.ID = tblJobs.ID) _
INNER JOIN tblRooms ON tblJobs.JobNumber = tblRooms.JobNumber) _
WHERE (((tblJobs.JobNumber)=[Forms]![frmJobs]![JobNumber]) AND ((tblRooms.Print)=True))"
Thanks,
Sylvain