Syntax Error



I have a form where a user can enter the date so that a list of invoices
meeting that date will be printed. My code looks like this:

Dim strWhere As String
strWhere = "'[dteInvoiceDate]=" & Me.txtSpecificDate '"
DoCmd.OpenReport "rptInvoiceListByDate", acPreview, , strWhere

However I get a Syntax error in string in expression. Is there something
wrong with the code? Thanks.
ck
.



Relevant Pages

  • Re: Multi options
    ... Dim strWhere As String ... MsgBox "Please enter a start and end date to run this report." ... Dim stDocName As String ... Dim strWhere As Integer ...
    (microsoft.public.access.formscoding)
  • Re: Multi options
    ... Doug Steele, Microsoft Access MVP ... It's only reading in one String once I get this one under ... Dim stDocName As String ... Dim strWhere As String ...
    (microsoft.public.access.formscoding)
  • Re: Multi options
    ... Dim stDocName As String ... Dim strWhere As String ... Doug Steele, Microsoft Access MVP ...
    (microsoft.public.access.formscoding)
  • Re: Searching Through ComboBoxes
    ... Dim strWhere As String ... boxes are looking up, so you will have to use the real names. ... The name of the combobox is PARID. ...
    (microsoft.public.access.formscoding)
  • Re: Multi options
    ... Dim strWhere As Integer ... MsgBox "Please enter a start and end date to run this report." ... Public stStart As String ... Dim stArea As Variant ...
    (microsoft.public.access.formscoding)