I am using the following:
SELECT Ticket_No, Registration_No, Issued_date, Vehicle_make, Vehicle_colour, Issued_by, Reason, Paid_Date, Ticket_Status FROM Tickets p JOIN Customer c ON p.Cust_Num = c.Cust_Num WHERE p.Location_Code = '" & strloc3 &"' ORDER BY Ticket_No DESC
If I add "notes" or "notes as notes_2" ie
SELECT Ticket_No, Registration_No, Issued_date, Vehicle_make, Vehicle_colour, Issued_by, Reason, Paid_Date, Ticket_Status, notes as Notes_2 FROM Tickets p JOIN Customer c ON p.Cust_Num = c.Cust_Num WHERE p.Location_Code = '" & strloc3 &"' ORDER BY Ticket_No DESC
I get an error when testing saying
Coloumn notes in field is ambigious
Any help appreciated
Cheers |
|
|