473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

invoice report - original + copies

38
I've created an invoice form which generates a report.
I've also created a form in which the user defines how many copies he wants to print with the original (with a loop to the number of copies etc).
I need to join this form to the print button in the invoice so after the user states he's willing to save, this form pops up and the user states the copies number he's interested in.
How do I do it please?
The end result I'm aimint at is the caption to change once "original" and then "/
copy".
Thanks.
Oct 14 '07 #1
5 1835
MMcCarthy
14,534 Expert Mod 8TB
I've created an invoice form which generates a report.
I've also created a form in which the user defines how many copies he wants to print with the original (with a loop to the number of copies etc).
I need to join this form to the print button in the invoice so after the user states he's willing to save, this form pops up and the user states the copies number he's interested in.
How do I do it please?
The end result I'm aimint at is the caption to change once "original" and then "/
copy".
Thanks.
Just have the code to open the other form on the Print button on the Invoice form. Have all the Print code on a command button on the other form.
Oct 14 '07 #2
nico5038
3,080 Expert 2GB
Trouble with triggering a report is the fact that the printer can jam...

Personally I've used a form print as an invoice order (no report), allowing me after the first buttonpress to show a messagebox is presented asking the print was OK. When that's the case the DatePrinted is filled.
All other copies will show "Copy" when that date is filled and only a special button will allow a new "Original".

Nic;o)
Oct 14 '07 #3
eyalco
38
Thanks guys.
The report works well - it needs the addition of the "copy" caption.
The thing is that the form I'm trying to connect is using 3 queries : del, add 0 + add 1 so when user writes how many copies, the 1's are the copy caption.

When I passed the printing procedure, the form didn't recognize this -
"strCriteria = "[invoice_no]= " & Me![INVOICE_NO]"
so I have to debug it all the time.
Can you assist please?
Oct 15 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
You need to change your link criteria to ...

Expand|Select|Wrap|Line Numbers
  1. strCriteria = "[invoice_no]= " & Forms![MainFormName]![INVOICE_NO]
where MainFormName is the name of the Invoice form which must remain open in the background during this operation.
Oct 15 '07 #5
eyalco
38
Thanks' it works.

Hope it's ok for me to continue here as the report itself is only in copy header.
I'm using this code :

If Forms![FRM_COPIES]![COPY] = 0 Then (defines qry add 0)
Me.ORG_OR_COPY = "original"
Else
Me.ORG_OR_COPY = "copy" (for every copy the user states)
End If
End Sub

Appreciate any help here.
Oct 15 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: David B | last post by:
I am creating invoices for an app I am busy with. The transactions for the invoice come from 2 tables which store Sales and Facilities Hire. The current arrangement is that I create a temp...
0
by: Kalvin Schroder | last post by:
Hello, I'm fairly new to MSAccess, and have developed a little program for invoices. I have the form all working, as well as the Report which is the printed invoice. On the report, I have an...
2
by: project | last post by:
I want to print an sales invoice with out open crystal report. I want to know ,with out opening Crystal report, how can I give the command to be printing invoice. I'm using the following lines...
3
by: abadi | last post by:
I have ready invoices and I want to enter the invoice information in a form then print the entered information on the invoice. The enter information is not stored in the database. I tried to make a...
2
by: yellowarmy | last post by:
Theres two problems i have. 1) Theres a question i have to answer in a mock is that the company does invoices every month but i need it for to select invoice and then select the month whcih would...
4
by: lawazia | last post by:
I am doing a project in which I have to create INVOICE reports I am using VB6 and Active reports. I am facing problem while creating a multipage invoice report. If the invoice report generated...
4
by: mikeDA | last post by:
I have an invoice report in Access. I have three invoices. I want to force a page break after each invoice# so I end up with three invoices, each with a header (invoice# date etc.), detail (items...
12
by: eyalco | last post by:
I have a report which I need to copy in 2 different lables. I've set a table with numbers from 0-10 (0 gets "original and all the others get "copy"). The caption is changed by IIF - so now all is ok....
6
by: ConfusedMay | last post by:
Hi I need some helps in calculating the invoice amount in access 2003 report. Basically I have an access report that shows invoice#, invoice amount, payment amount, and payment date. The problem is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.