473,385 Members | 1,782 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.

advanced report in access 2010

64
hi everybody,

how can I make advanced report in access 2010?

Does I need to use lookup function in access to call the data from "FORM" to "REPORT". Actually I want to make it like a preview report for that FORM. Can anyone help me how to call the exist data?
Sep 1 '15 #1
10 2165
Seth Schrock
2,965 Expert 2GB
This question should be in the MS Access forum, not in the VB.NET forum. I'll get a mod to move it.

Reports can't be bound to a form, only a table or query. So assuming that your form is bound to a table or query, then you just need to bind your report to the same table/query and just filter it to the record that you are on via the primary key value.
Sep 1 '15 #2
mrijet
64
Thanks Seth for replying....so I just need to set filter only in report? I will try that first..thanks again
Sep 2 '15 #3
Seth Schrock
2,965 Expert 2GB
I would put the filter in the WhereCondition Argument of the DoCmd.OpenReport command. This makes it a little easier to manage.
Sep 2 '15 #4
mrijet
64
Actually I m still learning using MS Access...if you said that put the filter in the WhereCOndition Argument is more easier to manage..

Let say if my report name is Sales Order then am I need to DoCmd.OpenReport "Sales Order", and put the condition?

Is that the way?
Sep 2 '15 #5
Seth Schrock
2,965 Expert 2GB
Assuming the primary key field is named SaleID, then your command would be
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenReport ReportName:="Sales Order", WhereCondition:="SaleID = " & Me!SaleID
Sep 2 '15 #6
mrijet
64
In my case got 2 table combine in one form, is there any possibilities to preview the report?

Example the first table got primary key and also the second table. In the form I call this 2 table in one form. And now I want to make the form to preview the using report. Does access can do that?
Sep 3 '15 #7
Seth Schrock
2,965 Expert 2GB
Can the records from the two tables be joined together in a query? In other words, is there a matching field in the two records that you would be viewing at the same time?
Sep 3 '15 #8
mrijet
64
Yes, can be joined together.But, after I join it and view the query, it show all the data? Because the case is, the relationship is many to many. So, it will list out all the the data. For example, PK is 00001 and then there are a 5 data in one PK. So it will list all the 5 data there.

00001 Sam
00001 Michael
00001 Rachael
00001 Hary
00001 Simon
Sep 4 '15 #9
Seth Schrock
2,965 Expert 2GB
Here is code that I have used in the past. I don't like using it because you have almost no control over how it prints. Also, I'm not sure how it will work in your current situation of getting data from two tables, but you can try it.
Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunCommand acCmdSelectRecord
  2. DoCmd.RunCommand acCmdPrintSelection
Sep 5 '15 #10
mrijet
64
Thanks for replying Seth. I really appreciated your help. I already got the way. It just create a query for the report and set the criteria for specific data I want for view and also can print the report by specific data as I want it.

Thanks man.
Sep 5 '15 #11

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

Similar topics

3
by: minnichj | last post by:
Is there a way to force an Access 2010 report to resize so all columns print out on one page (I'm looking for something similar to the "Fit to:" Page setup feature in Excel)? VB Code preferred.
4
beacon
by: beacon | last post by:
Hi everybody, My title may not exactly describe my issue, so please forgive my lack of creativity today. I've got a database that was created in Access 2003 that I've opened in Access 2010. I...
1
by: newtoaccessvba | last post by:
I am not too familiar with VBA in Access, but I would like if someone could show me how to ignore a caption and it's field in an Access 2010 Report and an Outlook Email when the field value is it is...
7
dgaletar
by: dgaletar | last post by:
To start off, I am a serious "newbe" to Access, and have probably made countless mistakes thus far in the design of this database. I work as a fleet mechanic for a University in DC, and am trying...
5
by: M0ji | last post by:
I have a table with 10 records in it, and I have created a report and added existing fields. The report shows one record on each page (There are therefore 10 pages) I need all 10 records on one...
2
by: shannonsims | last post by:
In an effort to digitize our personnel files, I am currently building an Access database that tracks stores employee information, to include admin documents, leave requests, training docs etc. After...
3
by: rahul2310 | last post by:
I have created joining letter in access 2010,as it is a letter it is not in column and row format. When i export report to word it does not shows report instead it shows column headings and data...
1
topher23
by: topher23 | last post by:
A layout provides a grouping method for controls on a form or report. The two default layout types are Tabular (labels in form header, controls in detail), and Stacked (labels to the left, controls...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.