Results 1 to 8 of 8

Thread: Anything wrong here[Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member Paradox's Avatar
    Join Date
    Sep 2004
    Location
    Nairobi
    Posts
    189

    Resolved Anything wrong here[Resolved]

    Hallo guys
    i'm producing reports from a table and i get a syntax error. the code is below. any ideas what cud be wrong?


    VB Code:
    1. Private Sub Command1_Click()
    2. Dim rs As New ADODB.Recordset
    3.  
    4.     Opencon
    5.     rsrequests.Close
    6.     rsrequests.Open "SELECT * FROM Requests WHERE((DateReq) Between # " & DTPicker1.Value & "# AND #" & DTPicker2.Value & "#)ORDER BY Sort DESC", Cn, adOpenStatic, adLockReadOnly
    7.    
    8.     Set DataReport1.DataSource = rsrequests
    9.     DataReport1.Show
    10.    
    11.     Set rsrequests = Nothing
    Last edited by Paradox; Nov 10th, 2004 at 12:06 AM.
    Peny wise pound Foolish

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width