|
-
Dec 5th, 2000, 09:06 PM
#1
Thread Starter
New Member
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.
-
Dec 6th, 2000, 03:29 AM
#2
Hyperactive Member
Have a look at the thread already running on this forum - 'creating access report from ADO recordset'
-
Dec 6th, 2000, 08:35 AM
#3
Fanatic Member
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...
-
Dec 6th, 2000, 05:35 PM
#4
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|