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

How to get a subform to take its parameter from another form?

I have a form [UnbilledWork] which contains two subforms:
[UnbilledHours] and [UnbilledExpenses].

The two subforms each have a SQL query to display their results in
datasheet view and allow the user to tick which items have been
billed.

What I'm trying to do is to use another form [End Date] to prompt the
user for the ending date. The date entered is then used as the
parameter in the subform SQL queries.

I'm trying to get the [End Date] form to come up first, prompt the
user for the desired date, then use this in the subform queries.

My issue is that forms appear to load the subforms first, then the
master form. As such, if I open my [End Date] form using the Open
event of [UnbilledWork], it's too late because the subforms are opened
first and they prompt for missing parameter values.

I tried opening the [End Date] form using the Open event of the
subforms, but that doesn't seem to work either.

Is there any easy way to open my [End Date] form, get the desired
value, then open the master and subforms so that the subforms
parameter will be available?

At present, the only way around this is to open another report or form
that uses the [End Date] form, enter a date, view the form or report,
then close it and go back to my [UnbilledWork] form (because then the
[End Date] form will remember what was entered previously and won't
prompt for any missing parameters).

tia

Jeff

May 6 '07 #1
0 1532

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: DD | last post by:
I want to link a form to another form by a Cmd Button. CustomerID = CustomerID I want the form to open from the Cmd Button as if it was acting in the same way as subform What would be the code?...
4
by: CSDunn | last post by:
Hello, I have a combo box (Combo7) that needs to call a function during the After Update event of the combo box. The function resides in an Access 2000 ADP Module called MMAnswerData_code. The...
4
by: Mason | last post by:
This is probably an incredibly newbie-ish question. I just haven't had the cause to use many subforms before, so I'm pretty sure I just don't understand it correctly (even after reading up on it)....
2
by: Shannan Casteel via AccessMonster.com | last post by:
I have a simple invoice form with a subform that allows the user to list part numbers along with the quantity. The subform has a calculated field called that should take either the or the and...
8
AccessIdiot
by: AccessIdiot | last post by:
I'm having some trouble going from one form to another and carrying over the ID field (see this thread if you are interested). So I was thinking about ways around the problem. As far as my very...
4
theaybaras
by: theaybaras | last post by:
Hi everyone, You've all been such a huge help to me since joining, and I'd just like to take a second to let you know how much I appreciate it! That said, I have another supplication! ;) I have...
4
by: Jacopo | last post by:
Dear ladies and gents, I am quite disoriented while trying to do something. I have developed a database in access, creating only unbound forms that on opening retrieve recordsources of the controls...
5
by: samdev | last post by:
I have created two combo boxes in a subform.... For example 1. Combo Box State 2. Combo Box City 3. When a state from the Combo Box State is selected, the City combo box updates to reflect...
0
sickenhoofer
by: sickenhoofer | last post by:
I am having some problems with a form and its subforms. It was designed to click on a list of numbers on a subform, which causes another subform's data to change to data relevant to the number...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.