473,386 Members | 1,702 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,386 software developers and data experts.

Subform -> Report

Currently I am creating a Access Program that will search a list of records and then display the results of the search at the bottom of the screen in a sub form. What I want to be able to do is display the results of the subform into a report. But I cannot for the life of me figure out how to do it. Coding is not my forte so feel free to dumb it down for me. I was thinking I would need to create string and then do

str = ???

DoCmd OpenReport "Panel", acpreviewnormal, , str

For this example my main table is called panel

Contains fields such as MO, Qty, date, name, contractor, etc.
My subform is called panels it also contains the same information. So what do i need to make my str = ??? work? I am confused. Anyways thanks for the help. Bye.
Sep 24 '07 #1
2 1973
Currently I am creating a Access Program that will search a list of records and then display the results of the search at the bottom of the screen in a sub form. What I want to be able to do is display the results of the subform into a report. But I cannot for the life of me figure out how to do it. Coding is not my forte so feel free to dumb it down for me. I was thinking I would need to create string and then do

str = ???

DoCmd OpenReport "Panel", acpreviewnormal, , str

For this example my main table is called panel

Contains fields such as MO, Qty, date, name, contractor, etc.
My subform is called panels it also contains the same information. So what do i need to make my str = ??? work? I am confused. Anyways thanks for the help. Bye.
I figured out how to make it display a single field that a searched for by just doing

sti = " [MO] = " & me.qMO

but that doesn't truly display what is on the sub form. Secondly what happens if I search for multiple fields. It won't take that into account? For example I might want to search for a MO and a job code. How do I make it output the results of that search? I could attach my current database if needed.
Sep 24 '07 #2
Jim Doherty
897 Expert 512MB
I figured out how to make it display a single field that a searched for by just doing

sti = " [MO] = " & me.qMO

but that doesn't truly display what is on the sub form. Secondly what happens if I search for multiple fields. It won't take that into account? For example I might want to search for a MO and a job code. How do I make it output the results of that search? I could attach my current database if needed.

Hi Soundman,

PM me with your email address and I'll send you a small db that I put together for newbies which might prove useful for you in your learning escapades. It handles searching in combination with other fields using wildcard and reporting from a subform. Adding new records when not in the db from the same search screen. The report considers whatever the subform holds and reports out based on that. There is an output to excel method in there and a few other techniques all of which you can rip apart and learn from.

Regards

Jim
Sep 24 '07 #3

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

Similar topics

25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
1
by: John Michael | last post by:
I have a form that has a subform that has a subform. The subform loads a record based on a combo lookup box in the main form. I'm trying to set a value in the subform based on a value in a...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
6
by: DMUM via AccessMonster.com | last post by:
Hello I am trying to pass the name of my subform to a function/sub but I can't seem to get it to work. I am using an autokey function (ctrl E) to unlock text boxes on a subform. I have a few...
4
by: Macbane | last post by:
Hi, I have a 'main' form called frmIssues which has a subform control (named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs. A control button on the main form opens a pop-up form...
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: 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...
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...

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.