Results 1 to 4 of 4

Thread: printing selected reports

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Posts
    2
    hi guys, can i get a little help.
    i'm making a quotation program for a friend.
    got almost all working. except the actual printing of the quote!
    reports come from access and print readily.
    quotes are stored in an access 97 db.
    have made a form with a sub-form for each individual quote.
    but heres the prob.
    I CANNOT GET THESE TO PRINT THE SELECT QUOTE.
    i've tried to send a paramemter/variable to
    appAccess.DoCmd.OpenForm "CustomerQuote", acNormal, , "Select QuoteId Where !QuoteId = lblquoteid", , acDialog

    i've also tried crystal reports (the version on the VB6 cd)
    got the design but wont print from vb6.

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Posts
    284
    Have a look at the thread already running on this forum - 'creating access report from ADO recordset'

  3. #3
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    Your condition in the OpenForm action is the wrong format. It needs to be a WHERE clause without the preceding 'WHERE'

    Hence,

    appAccess.DoCmd.OpenForm "CustomerQuote", acNormal, , "QuoteId = '" & lblquoteid, , acDialog

    Don't use !QuoteID.

    This will act as a filter on the underlying recordset.

    Cheers,

    P.


    Not nearly so tired now...

    Haven't been around much so be gentle...

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Posts
    2

    Exclamation still probs

    still wont function
    get the following error message
    '2046' the action or command 'openform' is unavailble

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