Here is my full code. I now get (missing operator) in query expression 'table1.userid='crollins' and where table2.fldDate > '5/10/2004 3:28:16 AM''.
dbRs.Open "Select table2.* from table2 inner join table1 on (table2.fldusername = table1.userid) where table1.userid='" & sUserId & "' and where table2.fldDate > '" & CDate(Now() - 30) & "' ORDER BY table2.flddate DESC, table2.fldTimeIn ASC", strCon, 0, 1 --- In [EMAIL PROTECTED], "Eric Goforth" <[EMAIL PROTECTED]> wrote: > This should work: > > > Select table2.* from table2 inner join table1 on (table2.fldusername > = table1.userid) where table1.userid='" & sUserId & "' and where table2.fldDate > '" & CDate(Now() - 30) & "'" > ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Domains - Claim yours for only $14.70 http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
