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

query parameter from open form field.....

I have a form that has two sub forms.

I would like to use the current value of one of the subform fields as a
search parameter in a query.

I tried pointing to the name of the form/field within the query, but it
didn't use the current field value as the search criteria......I get
the pop up Dialog that says "Enter Parameter Value"......

I'm not sure what I'm doing wrong.
Any thoughts would be appreciated.
Doug

Nov 13 '05 #1
3 4723
I would be very interested in knowing this as well.

Nov 13 '05 #2
dh*****@daubert.com wrote in
news:11**********************@l41g2000cwc.googlegr oups.com:
I have a form that has two sub forms.

I would like to use the current value of one of the subform
fields as a search parameter in a query.

I tried pointing to the name of the form/field within the
query, but it didn't use the current field value as the search
criteria......I get the pop up Dialog that says "Enter
Parameter Value"......

I'm not sure what I'm doing wrong.
Any thoughts would be appreciated.
Doug

A control on a subform must be referred to via the main form's
name using the following hierchichical convention:

Forms!MainformName!SubformControlName.Form!subform fieldname.

Note that the SubformControlName may or not be the same as shown
in the forms panel of the database window. It must be the value
shown in the name property of the properties popup for the
subform as seen from the main form .

the same caveat applies to subformfieldname.

--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #3
I have a subform that is in datasheet view.
The form has a variable # of rows based on the master form.

I want to be able to click on a value in one of the columns and open a
query that is based on that value.

I can use the "On dbl Click" event and use an Do.Cmd Openquery to open
the query......

How do I get it to use the particular cell value I clicked on as a
parameter?

Seems more dificult when the form is a "datasheet"...

How does Access identify the rows of a datasheet form, and how would
the "On dbl Click" event know what row you clicked on?????

Nov 13 '05 #4

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

Similar topics

3
by: Steve | last post by:
Form FrmRestock's recordsource is QryFrmRestock. The TransactionDate field's criteria is set ats: Forms!FrmRestock!LastXDays. LastXDays on the form is a combobox where the selections are 30, 60...
3
by: thomas goodwin | last post by:
I have a query which asks for a parameter value to execute it. To see the results I have to: a) click on the query -- the "Enter Parameter Value" window pops up. b) enter the parameter value c)...
2
by: RBohannon | last post by:
I have a report with most fields populated by a query. However, some of the fields are variable in such a way that their values cannot be queried from a table. At present the values for these...
4
by: paii, Ron | last post by:
I am trying to use the following "Elookup" function on a query that gets 2 parameters from an open form. ?eLookup("", "qryWOLPCMatEst") Returns the following error. Too few parameters....
19
by: bdt513 | last post by:
I am trying to extract the values from a query using VBA. Specifically, I want to concatenate all the values of the "rosEmail" field from query "qselRosterEmailList" into one string (strEmails). I...
4
by: Theo Jansen | last post by:
Hi, i'm making an application in Access and in the query made, i'd like the user to fill in a parameter when opening the query (in a report). It's much easier for the user if the parameter was a...
6
by: tizmagik | last post by:
I am having a lot of difficulty generating a CrossTab Query based report. I have looked online for several tutorials and whatnot but I have not been able to really find what I'm looking for, nor...
9
by: Kelii | last post by:
I've been trying to get this piece to work for a few hours, but have given up. I hope someone out there can help, I think the issue is relatively straightforward, but being a novice, I'm stumped....
4
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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: 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...

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.