DoCmd.OpenReport

  • Follow


Can someone please help me get the " and ' right for this?  (PARTNUMBER is a 
text field).  I just can't get it...argh!

DoCmd.OpenReport stDocName, acPreview, , "[PARTNUMBER] =" ' "& 
Me.PARTNUMBER" ' "
0
Reply Utf 11/27/2007 3:07:00 AM

DoCmd.OpenReport stDocName, acPreview, , "[PARTNUMBER] =""" & 
Me.PARTNUMBER & """"
-- 
Duane Hookom
Microsoft Access MVP


"Gina K" wrote:

> Can someone please help me get the " and ' right for this?  (PARTNUMBER is a 
> text field).  I just can't get it...argh!
> 
> DoCmd.OpenReport stDocName, acPreview, , "[PARTNUMBER] =" ' "& 
> Me.PARTNUMBER" ' "
0
Reply Utf 11/27/2007 3:14:02 AM


You have an extra " right after the = and need a & after Me.PARTNUMBER

Try:
DoCmd.OpenReport stDocName, acPreview, , "[PARTNUMBER] = ' "&  Me.PARTNUMBER
& " ' "


Gina K wrote:
>Can someone please help me get the " and ' right for this?  (PARTNUMBER is a 
>text field).  I just can't get it...argh!
>
>DoCmd.OpenReport stDocName, acPreview, , "[PARTNUMBER] =" ' "& 
>Me.PARTNUMBER" ' "

-- 
Boyd Trimmell
aka Hi Tech Coach
http://www.hitechcoach.com
http://www.officeprogramming.com

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-reports/200711/1

0
Reply Boyd 11/28/2007 11:37:40 PM

2 Replies
715 Views

(page loaded in 0.112 seconds)

Similiar Articles:
















7/20/2012 7:30:34 PM


Reply: