472,811 Members | 1,321 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Creating a purchase order report

1
I have a data base with about 4 different tables.
1. Cust info
2. Supplier info
3. Order History
4. Order details.

Order history and details are on one form with details being the
subform. This allows a 1 to many with the details.

This is all working fine. A person can input data into the main part
of the form and then go to the subform and add the details.

What I would like to do is create a button that the user can click on
that would print a report setup as a Purchase Order with information
on it from the main form and the detail form, so I can send that to my
supplier.

1.) I need it to print the current record that was just input.
2.) I need it to be able to re-print any record in the event the
original PO is lost.

I know this isn't very difficult to do but for some reason I cannot
get it started.

Do I
1.) Use a query to base the information?
2.) Then create a report based on that query and lay it out as I want it?
3.) How do I get it to ask for a specific transaction in the event I
want to re-print later.

4.)Are these two seperate items?

I hope I have been clear. Please feel free to ask any questions.

Thanks for the help.
Mar 21 '07 #1
1 5870
MMcCarthy
14,534 Expert Mod 8TB
1.) Use a query to base the information? Yes
2.) Then create a report based on that query and lay it out as I want it? Yes
3.) How do I get it to ask for a specific transaction in the event I
want to re-print later.

In the Report Open Code you have to set criteria based on the unique ID of the Order (I'm using OrderID as the example)

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenReport "Report Name", acViewPreview, ,"[OrderID]=" & Me!OrderID
This will print preview the record corresponding to the current OrderID on the form.

4.)Are these two seperate items? No

Mary
Mar 21 '07 #2

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

Similar topics

1
by: Matthew Clubb | last post by:
Hi, I need help developing an expanding form I've decided that a use of PHP, Mysql and Javascript is the best platform for creating a selection of database interfaces which I'm trying to build...
1
by: shovan | last post by:
I am creating a customized Purchase order report using asp. I have developed the reoprt as it is displaying the amount against a sales rep within a specific date range.now values are dispalaying...
1
by: dhildebrandt | last post by:
I am working on a form in which I have a shopping list of items that the user can check off and then beside each they can indicate the quantity they wish to order. I want each checked item to be a...
12
by: enak | last post by:
I have found some code that shows how to convert an html form to Word. The message said to simply put the following in the Page_load: Response.ContentType = "application/ms-word"...
3
by: Tyranno.Lex | last post by:
I am using Visual Studio .NET 2003 and have successfully deployed a commercial web application written in C# and ASP.NET. I am now wanting to add reporting using Crystal Reports and am having a...
9
by: sheenaa | last post by:
Hello frdz, I m working with SQL SERVER 2005. My problem is with the creation of foreign key for some table thru which i m not able to insert the data. This table are samples i have included...
4
by: sklett | last post by:
I've developed an ERP application that we use internally and works quite well. I receiving more and more requests from users to print various transactions, order forms, search results, etc. I...
2
by: tripoli40 | last post by:
I am trying to create a perishible goods database. I have several items that have expiration dates and I wish to track these. So far I have created the following tables: Part -contains part...
4
by: Constantine AI | last post by:
Hi I am trying to input some error messages into my system. I have come across a slight problem with one of them. i have a query which filters and groups data together displaying details on a form. I...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.