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

Access form design record look up

RockKandee
89 64KB
I have tried to search for answers that already exist, but I lack the proper vocabulary.

I am using Windows 8 - Access 2013

I need to add existing and new customers to events.

I am looking for a good way to do this in a form.

Adding new customers is a breeze. Adding existing customers is not so easy and I have to believe it should be.

Could someone point me to an example database?
Dec 10 '13 #1
15 2112
zmbd
5,501 Expert Mod 4TB
RockKandee:
What are you asking?
What is it you're trying to do?

If you are asking someone to point you to the correct templates or help you design a project from scratch, then that's really not what we're here to do... nor could we from what little you've provided.

If you are just starting out with Access then you should work thru the following tutorials so as to "get to speed" with the proper terms and foundation skill set:
------
Dec 11 '13 #2
RockKandee
89 64KB
No I wasn't asking anyone to help me design from scratch or point me to a template I could use. I was hoping someone knew of an example I could look at that would help me understand.

I am trying to find the best way to to create my forms for data entry when I need to connect info from 2 tables together.

Such as:
Table 1 = Event + Event details (time, location, etc)
Table 2 = Customers + contact info
I want to connect a customer to an event.
I want to do it by pulling up the event once and listing the attendees and be able to add attendees as/if needed.

Currently I have a search name set up to give me the customer ID and then I add this to the event. I know I can automate the addition (will deal with that later).

I need this type of connection with more that just the 2 example tables I used. For every search I set up on a form, it requires its own query just for the search part. I think there has to exist a way to avoid making all of these queries. I tried to use SQL but I don't have enough experience yet to make this work.

So I thought I would ask what a common way of doing this is.

I will read through the tutorials you posted and see if I can find the proper language to use to ask my question in a better way.

Thank You
Dec 11 '13 #3
zmbd
5,501 Expert Mod 4TB
RockKandee
It was really difficult to figure out what you wanted from the OP.
Actually, once you work thru the first tutorial I think you will actually have the tools you need to do what you want!

And it sounds very much like you're on the way to having the tables normalized which is a good thing!

Comboboxes are quite friendly in this case; however, Stay away from lookup fields at the table level unless you are going to use sharepoint (lookup fields are CBO equivalent at the table level).

Basically, you're going to go into databasetools and setup relationships between the primary key in one table and a linking table... take a look at :

I've a very simple database (faithformationtracking) at: http://bytes.com/topic/access/answer...esign-question

You should be able to download here:
http://bytes.com/attachments/attachm...ontracking.zip

Keep in mind that the database was designed for the thread and isn't actually intended to be a day to day use... although it would be serviceable... needs a tweek or two to finish normalizing and a slightly better form.

You'll want to look at the table relationships... once you get thru the tutorials it will make much more sense.
Dec 11 '13 #4
RockKandee
89 64KB
My tables are normalized and already have there relationships in place.

I have too many customers to use a form like the one you attached.

I had heard not to use DLookup which is why I did the search this way....

I am using 3 unbound text boxes (First,Nick,Last Name) with a macro that runs on update of the last box - set filter - where -

Expand|Select|Wrap|Line Numbers
  1. [ID]=Forms![FormName]!UnbtxName
I have a query with this in the criteria for each of the name fields I am using in my search.

Expand|Select|Wrap|Line Numbers
  1. Like [Forms]![FormName]![UnbtxName]
Expand|Select|Wrap|Line Numbers
  1. Like "*" & [Forms]![FormName]![unbtxName] & "*"
When I enter names in the unbtx it populates a unbound list box with any matching names. When I select a name from the list the record for that student is displayed or a blank record if no record already exists.

This is set up a bit differently depending on the form.

I have a form where I enter a date and get a list box with events on that date. When I select the event in the list box it populates the sub form with a list of who is attending the event and has blank records to add new customers. When I need to add existing customers, I use a pop up form with the same search method to get the customer ID and add them to the event.

I hope that gives a basic idea of what I am currently doing.

However, this requires a separate query for each form because the form name is specified in each query and each form has a different name.

I was hoping to find something that didn't require a separate query every time I use the method OR a better option.

Thanks again for your time
Dec 12 '13 #5
NeoPa
32,556 Expert Mod 16PB
Essentially, such a form would be built on the table which is used as the bridge. This is a many-to-many link table which, in its most common form, simply contains two foreign keys (FKs).

Each of the FKs would be represented by a ComboBox from where you can select an item from each of the relevant tables. This way the record being added or edited can be a link between the two tables.

Does that help to put the situation into clearer perspective?
Dec 12 '13 #6
NeoPa
32,556 Expert Mod 16PB
I see you may be beyond that stage now. Not sure exactly where you're going with all your unbound controls but it's possible the idea of Cascaded Form Filtering might be of use. If not just ignore this. Best of luck anyway.
Dec 12 '13 #7
zmbd
5,501 Expert Mod 4TB
RockKandee:

Perhaps, you did NOT read what I wrote in #4?

My tables are normalized and already have there relationships in place
I said that your tables sounded normalized from what you posted in #3... in fact, if you had started with the information in #5 we could have been well beyond basics.

I have too many customers to use a form like the one you attached.
I also said that the database was just an example of how the linking table would work, that you should take a look at how the tables were related. (which Neopa re-explains in #6, what I explained in #4 paragraph #4 and pointed you to in the database in #4 last paragraph... which, because you didn't appear to know about linking tables from either of your first two posts, I figured you would understand better after looking thru the tutorials)

I am using 3 unbound text boxes (...)
Now, finally we get to your third post (#5) where you start to provide some real details; however, even Neopa is having troubles determining what you are after and he has considerably more time in this forum and programs for a living.

The more details you provide to start with, and the clearer your question, the better the solution offered in a more timely manner. However, when you start out with such vague questions as in #1 be prepared to either not receive an answer or to get pointed to something as equally generic and try not to take offense - we've used what you've given us in order to provide the best answer within the context of the thread.

Indeed, if you had started out with the major concepts in post#1, post#3, and post#5; I would have pointed you both to the linking table and the cascading forms with my first reply.
Dec 12 '13 #8
RockKandee
89 64KB
NeoPa:

Thank you for the information. I will work on this.

I appreciate the time and help from everyone --- THANK YOU!!
Dec 12 '13 #9
RockKandee
89 64KB
I am trying to understand the Cascaded form filtering to see if it is what I am looking for.

Does this basically filter out matching records of the first box and then the second box selects from remaining records, and so on?

For example if I were to set this up using
last name, first name, and nick name
When I enter last name = Smith
then enter first name = Joe
only Joe with the last name of Smith would show up?

I am trying to understand what it does not how to do it.
Dec 14 '13 #10
NeoPa
32,556 Expert Mod 16PB
Cascaded form filtering, as opposed to simple form filtering with multiple filters, filters the lower level ComboBoxes as well as the form itself.

So, for instance, you may have a State ComboBox as well as a City ComboBox. Once a State has been selected all Cities that are not in that State get excluded from the City ComboBox. The form would also, typically, be filtered by the State ComboBox at the same time.

Does that help explain what is meant by Cascading ComboBoxes or Filtering?
Dec 15 '13 #11
RockKandee
89 64KB
Yes it does explain. The use of states and cities made for an excellent example. Thank you!
Dec 15 '13 #12
NeoPa
32,556 Expert Mod 16PB
Very pleased to hear it. Not all situations benefit from cascaded filtering, but if yours does then it's a good idea to use it, and quite user-friendly.

Do you now have enough to be getting along with?
Dec 16 '13 #13
RockKandee
89 64KB
I can't use the cascaded filters for my question on this post.

I was just saying you explained how it worked very clearly.

I have something I am going to try as soon as I finish fixing other things I broke. I am kinda drowning right now.

I will either be back to this post with my solution or with a "help me please".
Dec 16 '13 #14
NeoPa
32,556 Expert Mod 16PB
Example Filtering on a Form is another one that may prove helpful when you get back to looking at this. I'll leave it with you for now.
Dec 16 '13 #15
RockKandee
89 64KB
Here is what I ended up doing. I basically left it the way it was except I moved the query criteria into the list box row source query builder so I could eliminate having a query in my nav pane for every form I use this process with.

Having too many of these queries was the reason I began this post.

I appreciate all the info on form filtering.

For this question, I couldn't use it because I needed more flexibility with my searches.

I am sure I will need the info provided in the future.

Thanks Again!
Dec 20 '13 #16

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

Similar topics

4
by: Rick Brown | last post by:
I have a form built in Access2000 that looks like the hardcopy in all ways including color. I now want to move this form to the company Intra-Net via ASP.NET. Is there a way to wizard this form...
0
by: misscrf | last post by:
I am currently working on a database, in 3rd normal form, which is for candidates who apply for a job with the law firm that I workd for. My issue is with good form design. I have a main...
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
13
by: ricky.agrawal | last post by:
I'm really not sure how to go about this in Access. What I've created is a table for each location. Those tables are identical in format but different in information. The tables are named after...
3
by: Tom_F | last post by:
To comp.databases.ms-access -- I have a questionnaire for which I would like to design a MIcrosoft Access form. I understand that the proper Access table structure would be: Respondent_ID ...
6
by: Jack | last post by:
Hi, I have an Access application which need to be converted to asp-sql server application. This Access application uses a single form. This form has got a SS number with names and age. The form...
4
by: yanjie.ma | last post by:
Hi, I've got a two part question on table and form design (sorry for the length but it takes a bit to explain). Our sales department uses a look-up table to help the them select the best...
4
by: Steven | last post by:
Hi, Would need some thought about using a button of the existing form to search record before deleting it. Any quick help is very appreciated. Steve
0
by: airwot4 | last post by:
Hi all, I'm sure this is simple to answer but I have built a project exited VB Express. When I go back into VB Express and open the project no files appear (but I can open them manually) and...
2
by: Karl | last post by:
Using A2000 When I click the save icon in form design, Access closes immediately. No warning messges, nothing. This happens on only one form. I deleted the form and recreated it. I could save...
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: 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
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: 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...
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
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...

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.