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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Query (and implent in Ultradev 4)

Status
Not open for further replies.

jeevenze

Technical User
Mar 13, 2001
62
US
I have the following query below (at the bottom of post) that works fine, it returns the overall results I want. BUT in ultradev I add the following line at the end of the query, "WHERE tblGeneralTicketInfo.userID='MM_ColParam"
(and MM_ColParam has a value of RequestQueryString("userID")

This is because I have set it up when a user logs in, his userID is carried on through the URL parameter so that only his ticket is visible. This method works fine with simpler querys where I select all fields from a single table. Howeverr when I try a more complex query like the one below where I try to join tables I get an error in ultradev stating that I have an error in my syntax.

SELECT tblGeneralTicketInfo.Ticket_Number, Count(tblcommentslog.Ticket_Number) AS CountOfTicket_Number
FROM tblcommentslog INNER JOIN tblGeneralTicketInfo ON tblcommentslog.Ticket_Number = tblGeneralTicketInfo.Ticket_Number GROUP BY tblGeneralTicketInfo.Ticket_Number
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top