473,471 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Many Queries to feed one Form, How?

3 New Member
Hi All,

I created a form to show current stock of specific tool part no from one query. The current stock of a specific tool part no = All Purchased Tools - (Tools in Repair if any + Scraped Tools if any). Specific tool part no is chosen from the unbound combo box.
The problem is when a tool has never been repaired, the form goes error. the form can only works when a tool has been repaired. in another words, the form only works when data for all the 3 fields (All Purchased Tools, Tools in Repair, and Scraped Tools) are exist. If one of them is not exist, the form won't work.

I think the solution for this problem is to have 3 queries (one query for All Purchased Tools, one query for Tools in Repair, and one query for Scraped Tools) to feed the form. So, when specific tool part no is chosen in combobox, it should requery all the 3 queries. I don't know how to do this though.
I have created the 3 queries and link them with the combobox using [Forms]![MyForm]![MyCombo] and put "me.requery" in MyCombo afterupdate event. But, It doesn't work. I suspect it's because Record Source of the form (if I look in its properties) is only linked to one query. Please help.
Sep 3 '07 #1
3 1266
FishVal
2,653 Recognized Expert Specialist
Hi, rdb.

Post the query calculating current stock of a specific tool part.
Sep 3 '07 #2
rdb
3 New Member
Thanks FishVal.
Really appreciated.
I have managed to do it using VB code.
But, I'm still amateur. So, if there is any problem again, I'd like to ask all the experts here including FishVal.

Cheers.
Sep 12 '07 #3
FishVal
2,653 Recognized Expert Specialist
You are welcome.
Glad that you've managed to solve the problem.
Good luck.
Sep 12 '07 #4

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

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
5
by: zeroSpammingIsBadtype | last post by:
Hi, On Cygwin, most of the header files for gcc and g++ used UNIX style line breaks, so I've been replacing these (by copying into Wordpad from Notepad and then copying out again) with...
2
by: Steve | last post by:
A main form contains ten textboxes and ten subforms. All ten subforms have the same query (Query2) for their recordsource. Query2 is based on a query (Query1). Each subform is linked to a different...
2
by: Brad Sanders | last post by:
Hello All, Thanks to Richard's answer to my last post I understand now what I have to do, but.. How do I put a Line Feed or a Form Feed into a text file? Looking throught the .net help it...
9
by: Jay | last post by:
ok have this program and i set a socket 2 connect to the server...so i can chat on the channels and stuff. my question is how would i go about set a socket directly 2 an individual query? my...
1
by: TetoPR | last post by:
Hi, I'm trying to create a report that feeds from multiple Parameter Queries; I want those queries to share one Parameter Form (by this I mean a single form to alter the same criteria in my...
0
by: breakerman | last post by:
I have 4 inch high sprocket feed forms, for which I've defined a custom form in the Windows XP Print Server. My OKI Microline 320 has this fancy forms tear-off mode that only activates when it...
2
by: elaine | last post by:
I'm working on a .net web application. The architect of this web application is quite different than other web applications i worked before. Since we use a set of tools to generate most of the...
3
by: Spiros Bousbouras | last post by:
The fact that vertical tab and form feed exist both in the basic source character set and the basic execution character set suggests to me that there is a class of display devices where vertical...
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:
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.