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

subform combobox filter problem

I have created a bound subform on an unbound masterform linked together
with a common field (A store's identification number) using an unbound
combobox on the masterform and an invisible field on the subquery,
which filters for a particular store. The subform is in continuous
mode. So, what you see when you select a store is a list of all the
items that that have not been billed for. There is a simple yes no
field that filters out all of the items already billed for.

On the subform, I have created a combobox bound to a field on the
subform's query (simple query on a single table sorting items
alphabetically). A query was designed for the Rowsource of that
combobox. With that query, I am updating two fields in the subform
with information linked to specific items. In other words, if you pick
item a, it would, through an on change event code, update two of the
subform's query fields with the item's taxable status and a negotiated
price for that particular store, which is entered through a separate
form (table).

Where I am getting stuck is that I also want this rowsource's query
(which contains a storenumber field) to automatically pick up on the
main form's and subform's masterlinked store number field. The query
works perfectly when I test it, BUT I have to input manually the store
number. I cannot figure out how to get the store number into the
criteria box for the store's number on this rowsource's query
automatically.

So, what I am trying to do is have this combo box pick up on the
store's number, then pull up the items listed as available (a separate
table with item's taxable status and negotiated price). That way, when
the user selects a store from the main form's combobox, in the
subform's combobox he ONLY sees the items available and negotiated to
that store and the two field's for the items taxable status and
negotiated price are updated automatically when the item is selected.

When I think of trying to do it in code (and my coding skills are very
rudimentary), I don't know how to make the items name appear
automatically in the varying continous forms for a particular store.
It shows up now because of the item's rowsource query and bound status.

Can someone pleeeeeeeeeeeeeeaaaaaase help?

Thanks,

Barry

Nov 30 '05 #1
1 3187
Br
bc********@bigfoot.com wrote:
I have created a bound subform on an unbound masterform linked
together with a common field (A store's identification number) using
an unbound combobox on the masterform and an invisible field on the
subquery, which filters for a particular store. The subform is in
continuous mode. So, what you see when you select a store is a list
of all the items that that have not been billed for. There is a
simple yes no field that filters out all of the items already billed
for.

On the subform, I have created a combobox bound to a field on the
subform's query (simple query on a single table sorting items
alphabetically). A query was designed for the Rowsource of that
combobox. With that query, I am updating two fields in the subform
with information linked to specific items. In other words, if you
pick item a, it would, through an on change event code, update two of
the subform's query fields with the item's taxable status and a
negotiated price for that particular store, which is entered through
a separate form (table).

Where I am getting stuck is that I also want this rowsource's query
(which contains a storenumber field) to automatically pick up on the
main form's and subform's masterlinked store number field. The query
works perfectly when I test it, BUT I have to input manually the store
number. I cannot figure out how to get the store number into the
criteria box for the store's number on this rowsource's query
automatically.

So, what I am trying to do is have this combo box pick up on the
store's number, then pull up the items listed as available (a separate
table with item's taxable status and negotiated price). That way,
when the user selects a store from the main form's combobox, in the
subform's combobox he ONLY sees the items available and negotiated to
that store and the two field's for the items taxable status and
negotiated price are updated automatically when the item is selected.

When I think of trying to do it in code (and my coding skills are very
rudimentary), I don't know how to make the items name appear
automatically in the varying continous forms for a particular store.
It shows up now because of the item's rowsource query and bound
status.

Can someone pleeeeeeeeeeeeeeaaaaaase help?

Thanks,

Barry


I think what you want to do is set the subform field's defaultvalue
property to a refrence to the field on the main form?

eg. = Forms!frmsMain![ID]

I do this all the time when adding records in a subform that require the
ID from the main form.
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Dec 1 '05 #2

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

Similar topics

2
by: Bill | last post by:
I'm having what seems to me to be an odd problem. Perhaps there is some explanation, but don't know at this point. Basically I have a form that tracks memberships and donations. The main form...
2
by: Cameron | last post by:
Hi, For the database I am currently working on, my employer would like the ability to use multiple combo boxes in order to filter the database. For instance the structure of the company is based...
3
by: Nicolae Fieraru | last post by:
Hi All, I have a problem and I can't figure out how to solve it. My database has three tables: tblCustomers, with CustomerId and CustomerName tblProducts, with ProductId and ProductCode...
1
by: Trent | last post by:
I am in the design phase of a new database and am having a devil of a time with a subform. I have three tables that relate to problem - Suppliers tbl, Customers tbl and a SuppliersCustomers tbl....
0
by: bcreighton | last post by:
I have created a bound subform on an unbound masterform linked together with a common field (A store's identification number) using an unbound combobox on the masterform and an invisible field on...
3
by: Major Doug | last post by:
Hello: situation--I have a research database. Each record in the database consists of 10 fields. I used access97 to rack/stack my database; very easy in the beginning. I created a form with a...
12
truthlover
by: truthlover | last post by:
I have a problem that's difficult to explain, so please be patient. The database is in 2000 format, though I'm doing most of the designing in 2007 (saved as 2000 format, of course) I have a...
5
by: shiwawa | last post by:
I have a problem filtering records in my subform using a ComboBox in the Main Form. I have tried options proferred in other forums and have still not git the desired result. I know I must be missing...
13
by: bkberg05 | last post by:
Hi - I have a form called Vendor (tied to table with same name). Each vendor_id can belong to more than one 'category'. So there's a table called Vendor_Category which contains just vendor_id and...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.