473,687 Members | 3,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 pleeeeeeeeeeeee eaaaaaase help?

Thanks,

Barry

Nov 30 '05 #1
1 3223
Br
bc********@bigf oot.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 pleeeeeeeeeeeee eaaaaaase 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
8565
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 tracks the individual and the subform allows me to add donation amounts or membership fee payments. It's fairly basic. Well what I want to do is when I enter a new membership payment it looks to another table. If the person is currently a member,...
2
3319
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 on regions, which are managed by a number of coordinators, who oversee a large group of associates. I would like to use a combo box so that people accessing the database can choose a particular region and then have a second combo box that only...
3
4499
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 tblPurchases, with PurchaseId, CustomerId and ProductId I created a form with a subform which shows all the customers, one at a time
1
2206
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. The intent is to have the user enter in spend information by customer with each supplier. Sounds simple enough right? The common fields in each table are as follows:
0
346
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 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...
3
2604
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 combobox. Using some information I found through this forum, I created the comboxbox in the form's header linked to textboxes in the form's detail. I could click on the column and see the linked data populate the 10 textboxes. I could easily maneuver...
12
3127
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 continuous form frmEditConstructionLog with an unbound combobox that filters the results to the desired project number. This works fine. I need to add the option of choosing multiple Crew Members, and this is where I'm stuck... I cant use a...
5
14623
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 something as this looks quite simple. I have attached a screenshot to help. What I need to for the records to be filtered by the Section Field using either of the three options in the ComboBox. The ComboBox looksup data from a Sections table...
13
2109
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 category. On the Vendor form, there's a subform called Vendor_Category. When a user is in the Vendor form and is in a record for a particular vendor_id, they use a combo_box in the Vendor_Category subform to select Vendor_Categories that can...
0
8528
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8947
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8782
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7621
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6453
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4321
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2964
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2215
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.