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

Lookups

21
I have a table ADDRESSPOINTS with fields ADDRESS, X and Y.
This contains thousands of existing records of addresses and their associated X and Y mapping coordinates.
I have a table INCIDENTRECORDS with fields INCNUMBER and NAME.
I want to be able to create records in the table INCIDENTRECORDS via a form INCFORM by selecting from the appropriate pre-listed addresses and then entering data in the fields INCNUMBER AND NAME.
I then want a query GISDATA to contain fields ADDRESS, X, Y, INCNUMBER and NAME.
This will then be used to link across and automatically display the locations of the incidents within a GIS mapping system.
I can cope with the GIS bit - but any help in how to set up the internal Access database lookups would be gratefully received!
Thanks.
Kev
Feb 13 '09 #1
6 1360
beacon
579 512MB
How do you want to lookup the info? Do you want to use a form to open a query or a report?

Are you also saying that you want a combobox on the data entry form that will show the user all the available addresses they can choose from?
Feb 13 '09 #2
KEV999
21
Hi, thanks for the prompt response.
I've managed to get the addresses to show up in a combo box within the form.
By starting to type in the address it matches them and lets you choose the one you want. That bit is fine.
Where I'm stuck is getting the info from the table where the addresses are into the query along with the rest of the data entered.
Feb 13 '09 #3
beacon
579 512MB
What is the recordsource for your form?

If you make the recordsource of the form the same as the query that you want the results to go to...and then make the control source on each of the controls on your form (textbox, combo, etc.) equal to the query as well, you should be able to do the data entry without any problems.

Does that make sense? I hope this doesn't come across as condescending...wanted to start basic in case you aren't that familiar with Access.
Feb 13 '09 #4
KEV999
21
Many thanks. Please be as condescending as you wish - I'm very new to Access! Could you even explain how to do this a little more simply.......!
Feb 13 '09 #5
beacon
579 512MB
Haha...I always feel like it's important to say that so I don't make cyber enemies.

I then want a query GISDATA to contain fields ADDRESS, X, Y, INCNUMBER and NAME.
First off, have you created the the above query? If not, do that first.

Open your form in design view. Right click somewhere on the form and choose Properties. In the dropdown box at the top of the Properties dialog box, select Form. Amongst the properties listed for the form, look for RecordSource...what does it say? If it doesn't have GISDATA in it, select it from the RecordSource list. (RecordSource is where your form is supposed to link to. Essentially it's the location you want your data to go to.)

Then click on each of the controls on your form (excluding labels) and make sure there is a ControlSource. (The ControlSource is the specific place in the RecordSource where you want the data entered in the control to go to. For instance, if you have a text box for a date without a control source, it won't get put on any table. It's like writing without any paper or playing air guitar...your work doesn't do anything)

Once you've done that, the data should enter on your query, considering the relationships between your tables is well-defined.

Let me know if there's anything else I've failed to address.
Feb 13 '09 #6
NeoPa
32,556 Expert Mod 16PB
I don't see anywhere in your data layout anything which will allow you to associate an address with an incident.

What you normally see in situations such as these is a field in what is essentially your lookup table (ADDRESSPOINTS) which can act as a Primary Index, and a similar field in your data table (INCIDENTRECORDS) which acts as a Foreign Index. This way, your query can link the two tables together such that any record in [INCIDENTRECORDS] matches up with only the one matching record in [ADDRESSPOINTS].
Feb 13 '09 #7

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

Similar topics

2
by: Marc | last post by:
I'm back in the Access development mode and seem to have forgotten how to do 2 things that should be simple. I have a database with a table of contacts, companies and activities. The idea is that...
1
by: Colin | last post by:
Question#1: Many of my forms have combo boxes (e.g. CustomerID). The combo box looks up CustomerName from CustomerID in the Customer table. Am I better off including CustomerName in my query...
5
by: Don Sealer | last post by:
I'm beginning to understand a little about lookups, but just a little. Here's another question I'm wondering about. I want to input a part# and then input a department code (G,D,B) and depending...
1
by: Russell | last post by:
Hi, I've been reading a lot about not using lookups in tables lately. Thus far, what I've been able to understand from my reading is this: - Do not use lookup fields in tables because they...
5
by: AnAnimal | last post by:
We are moving a rather large application to the VB.NET platform. This application has a ton of table lookups. ie. code & description or code, category & description or code, class, category &...
24
by: BBands | last post by:
I have some CDs and have been archiving them on a PC. I wrote a Python script that spans the archive and returns a list of its contents: ...]. I wanted to add a search function to locate all the...
6
by: mac | last post by:
Summary: 1. I want to define a column in anMS Access table to be lookups on other tables. 2. The table that is the data source (e.g the "parent" table) has a composite primary key. 3. When...
7
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm...
2
by: King Ron | last post by:
Ola all. In responding to a recent post requesting help with a search issue, I recommended using a combo box lookup in the table design. "paii, Ron" (no relation) posted this reply: " There are...
4
by: netnewbie78 | last post by:
Hello All, I don't have a problem (but maybe I will after I explain). I have a question with regards to something I saw in Access 2007. But first, a little backstory: I'm writing a very small...
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?
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
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,...

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.