473,396 Members | 2,014 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,396 software developers and data experts.

Issues with Parameter Query Subform in Access 2003

I'm a relative newbie to Access, working in 2003 and trying to build a very simple client database for my company. Here's the basic set-up I have so far:

-Clients Table contains all the relevant contact info for all clients. Name, address, email, contact person, etc.
-Orders Table contains each order the various clients have made, including dates, quantities, etc.

The Orders table contains a Client ID field that links it to the Clients table. The trouble is right now you have to open the Clients table and scroll through it to find the ClientID for each order, which is silly and time-consuming. I created a parameter query that returns the ClientID when you search any part of the client name, but I ran into trouble when I tried to embed it as a subform in the Order entry form. (In my ideal world, users would open a single form (with subforms, obviously) to look up a client's ID and enter their order info.) I want users to be able to re-enter the parameter if they mis-type something or have more than one order to enter in a sitting, but can't for the life of me figure out how to get the prompt window to re-open without closing the form entirely and reopening. Not actually sure if it's possible or not, so any solutions regarding entering new parameters without closing and reopening forms would be greatly appreciated.

I am not very familiar with VBA, but can figure it out if given simple and concise instructions.

Thanks!
Nov 14 '11 #1
3 1757
NeoPa
32,556 Expert Mod 16PB
It sounds like you've gone off in a few wrong directions I'm afraid.

The first thing I would say is to explore a little first using the wizards. The items they create often indicate what is possible and easy with Access. Many people come into the subject with existing thoughts about how things should work and often miss the point of how Access does things. This is extraordinarily debilitating as far as their development and progress goes.

Next I'd say look at the concept of Database Normalisation and Table structures. This is less directly connected to the question but probably needs to be looked at first.

As a hint (I don't believe you're in a position yet to take basic instructions on this) an orders form would normally have a ComboBox control whose list data is populated from the [Clients] table, but whose selected value (which is normally an automatically generated numeric ID field even if the data displayed might be a client name) is stored/saved in a field within the [Orders] record. It's important to perceive how and why this would work for your requirement.
Nov 14 '11 #2
Boo. A disheartening answer, but I appreciate it. I'll explore the links you've provided to see if I can find a better approach to the issue.

Thanks.
Nov 14 '11 #3
NeoPa
32,556 Expert Mod 16PB
Sorry to dishearten. Access is not as pick-up-and-go as MS would have you believe, but with some intelligence it's achievable. Your mistakes and thinking only reflect inexperience so far. Nothing to be disheartened about from that perspective.

Remember, you can always ask questions. The smaller and more distinct they are the easier it is for you to get an answer. Another point well worth remembering. Good luck.
Nov 14 '11 #4

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

Similar topics

1
by: ms | last post by:
I successfully ran queries with functions in Access 2000 that no longer run in 2003. Also, when I convert it back to 2000 and run from 2000, I continue to get a compile error. The compile error...
2
by: Bill Stewart | last post by:
Can anyone point me to some code. There are so many varaiations going on here - VB to VB.net then .net to 2005 .net then beta1 to beta2 - its hard to follow. Help.
1
by: Bill | last post by:
Hi, Our database is Access (i know, i would be better to use Mysql, but at the present time, it's access ...) and i created a parameter query (like a stored procedure in Mysql) for...
4
by: azjazz | last post by:
Hi - I tried to search the forums on this issue, but couldn't get good results. I'm sure this has been asked before, so hopefully it won't be too hard to find an answer ... I have a database...
2
by: Andy | last post by:
Hi guys I having a problem creating a report in Access 2003 project talking to a SQL database through and ODBC connect. After hours of trying things from Access Help, MSDN and Google I still...
4
by: ashutoshvyas | last post by:
I am designing a data report in VB6. In data environment it is possible to selet tables and 'select quries'. But I want to generate a report based on parameters passed by user, so i had created a...
1
by: stuart | last post by:
I have a list of records in a subform that a user can either edit or delete. This is an unbound form. If the user deletes a record, I want to refresh the form, and then position the cursor on the...
3
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi guys, I'm building a GUI for a small Access DB and basically what I want is the following: Two drop-down boxes on a form. The form is bound to a table (Contacts). The first drop-down box is...
9
by: longmanm | last post by:
I realise there isn't a direct replacement of countif for excel in access but I am struggling to get aggregate functions to work for me in access 2003 queries. I am creating a stock management db,...
0
by: AdamT | last post by:
Hi I'm quite new to Access, I can do queries and only a very little bit of code. So please treat me gently. I have a query with the following fields: Area, Engineer and PC. The PC is a percentage...
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?
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
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...
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,...

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.