DoCmd.OpenReport

  • Thread starter Thread starter Gina K
  • Start date Start date
G

Gina K

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" ' "
 
DoCmd.OpenReport stDocName, acPreview, , "[PARTNUMBER] =""" &
Me.PARTNUMBER & """"
 
You have an extra " right after the = and need a & after Me.PARTNUMBER

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


Gina said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Change Sort in VB 1
Prints Twice 6
Multiple reports 12
Syntax Error 2
Print Selected Records 2
Multiple Reports to use only 1 Query 1
Adding control to report 1
Parameter for Report from Form 2

Back
Top