473,396 Members | 1,998 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.

Importing lookup data tips or suggestions

I'm working on a database that stores user information for various applications, such as username, location, request ticket, etc. I'll have tables such as App1, App2, etc. I would like to have the location information kept in a lookup table, such as lkupLocatio, so that it's consistent throughout the other tables. We get requests on Excel spreadsheets, and I'd like to be able to import the data from the request form into the database. When using a lookup table, the information is stored as a number, right? The information in the request form is the full name of the location, though. Any thoughts or tips on a good way to import the data?
Mar 3 '11 #1
1 1343
TheSmileyCoder
2,322 Expert Mod 2GB
When I do imports such as those where I have to match a text based record (excel) to a lookup table record, I usually import the excel sheet to a temporary table, and then run a append query, where I join the excel text column with the lookup table's text column, but store the lookup table's Primary key field (the number).

And yes, the principle behind a lookup table is that you store the primary key of the foreign table(number usually) instead of the text value.
Mar 3 '11 #2

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

Similar topics

1
by: James E | last post by:
I have a question about best practices of how to deal with lookup data from my C# apps. On a couple of occasions I have come across a problem where I have to automate inserting a record into a...
1
by: D Mat | last post by:
Hi, I'm trying to get MS Access 2000 to automatically import a series of (~200) flat text, tab delimited, data files into a single Access table, with consistent fields and rows. The files have...
5
by: Peter | last post by:
I am looking for a data structure that I need to use as follows. Suppose I am looking for node A. When I perform a lookup for node A I also want information about the node previous to node A( as...
1
by: Demetri | last post by:
Hello, I have a page with a datagrid. The datagrid has a column called Employee Name. This column is for display purposes. However, in edit mode (including making additions) the user will need...
2
by: Bruce Mogayzel via AccessMonster.com | last post by:
What is the syntax to lookup data in another database? Thanks Bruce -- Message posted via http://www.accessmonster.com
1
by: winzy | last post by:
I have a table in Access which needs updating from an Excel file. Instead of importing the whole Excel like a new table in Acess, how do I do a partial import/update?? For example, Access table...
0
by: Mike Collins | last post by:
I am importing a XML file and have not been having the best of luck in doing this, but I do have the following solution below. I will not be importing more than 2000 records at a time, but will be...
0
by: srkartes | last post by:
Is it possible to have a data entry form in MS Access lookup data for display purposes only. For example, I have error codes associated with specific errors in "Table A" and "Table B" that data is...
2
by: WODJ | last post by:
Folks, I hope someone out there can please help me, not much hair left with this one. I'm importing excel data into a SQL server database using an Oledb connection in C#. The problemm is that...
0
by: mukil | last post by:
Importing DbaseIII data to sql 2005 using asp Coding platform windows server 2003 awaitinf for reply regards, mukil
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.