DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Advanced Search  
DwZone Forum Index -> Advanced Search

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 141 to 150 of 282 (Total: 122) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re:What works with what?  
View this persons public profile  gianluigi   14:12 1 Aug 2007  
   Re:What works with what?  
View this persons public profile  [email protected]   14:15 1 Aug 2007  
   query Wizard  
View this persons public profile  [email protected]   17:46 21 Jul 2007  
   Re:query Wizard  
View this persons public profile  gianluigi   0:03 22 Jul 2007  
   Re:query Wizard  
View this persons public profile  [email protected]   14:07 25 Jul 2007  
   Re:query Wizard  
View this persons public profile  gianluigi   5:24 28 Jul 2007  
   Two fields with the same name problem  
View this persons public profile  [email protected]   8:07 13 Apr 2007  
   Re:Two fields with the same name problem  
View this persons public profile  gianluigi   10:06 13 Apr 2007  
    Re:Two fields with the same name problem  
View this persons public profile  [email protected]   10:41 26 May 2007  
 
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
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re:Two fields with the same name problem  
View this persons public profile  gianluigi   11:27 26 May 2007  
Last Visit: Saturday 2 Nov, 2024 0:32 am First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-1

Jump to: