Access Assistance

Jator

Golden Member
Jun 14, 2000
1,445
7
81
I've been using Access for a few years now and have been able to figure out how to do most of the things I want it to do, but there is one that has dogged me for quite some time now.

I want to have 2 tables, one with info, say an item number, description and a price. I want the other table (customer) to be a table that has a form on top of it where you could put say customer information, then when you type in the item number, it automatically inserts the description and price from the info table into fields in the customer table.

I know how to link tables, and have setup a link between the 2 tables with the link on the item number being the linked item. I can get a query to work, but the problem is is that the query can't store the data back into the customer table.

Any suggestions would be helpful.

Thanks,

Jay
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,591
5
0
Use VBA code to query the proper record in the second table and update the needed fields using the data in the form.
 

theknight571

Platinum Member
Mar 23, 2001
2,896
2
81
Do you just want to display the item's details on the Customer form, or do you actually want to store that information in the customer table?

- TK
 

Helpless

Banned
Jul 26, 2000
2,285
0
0
All my data are in the left hand column called, 'Items.&quot; After that, I have a dozen of so columns to the right with numerical data on volume, price per unit, dollar sales, etc, etc...So I would like it to search the 1st column (Items with text description) and only display the info for the ones with the acronyms I need, like FFR, L/F, etc, etc...

I'll draw a little picture

-------------------------------------------------------------
ITEMS | Volume of Sales | ETC |
_____________________________________________________________

+GBCHS RFG MZRL xxxx xxxx
+SRRNT RFG CHDR FFR xxxx xxxx
+PKCHS RFG PMSN SHRD xxxx xxxx
+KRAFT RFG CHDR SHRD xxxx xxxx
+KRAFT RFG CHDR SHRD xxxx xxxx
--------------------------------------------------------------

So I would like to import a table like this from excel, do a query and extract lines like #2 with FFR and all the data to the right of it...seems like just a glorified sort command, but can;t figure it out...all the rest of the lines above, without FFR, are junk to me, as I have them included in the aggregate database...just want to extract the FFR line, per say.
 

Helpless

Banned
Jul 26, 2000
2,285
0
0
Okay, I am close...need some hlp, though...If I import the data, do a select query...then click the little pencil/triangle &quot;View&quot; icon, I see where I can enter the criteria parameters...I tried it a *bazillion* times and it only showed one empty cell....then I tried to use the criteria for a different column (say field 2) and used &quot;NA&quot; since some cells say NA in the table in the column...it worked...listed over 11,000 lines in the table HOWEVER, I still can't get it to sort through the first column and extract the lines with the acronyms I place in the &quot;criteria&quot; section!!!


...could this be because it only looks at the first word? the lines, as seen above, sometimes have 5-6 different words in there, so maybe it only checks the first? Any work arounds, ideas?
 

Helpless

Banned
Jul 26, 2000
2,285
0
0
okay, sorry to keep posting so much, but I am soooo close...I got the items to sort for &quot;FRR&quot; only buy using &quot;*FFR*&quot; as the criteria, so I guess it does only look at the first word. Problem is, some of the other words have some of the letter combinations in there, like the &quot;lite&quot; acronym LT....so I sort of want it to pull only exact matchs for LT, but can;t get it to work without &quot;*LT*


...close, but no cigar...I could work around it and go line by line and see if it pulled any bogus lines out...but have about 100+ spreadsheets and many have well over 30K in lines




[EDIT] Here's line that shows what I am talking about:

ID ITEM Field2

1030 +WDFFR RCE SNCKR CRK PCR $1xxxxx.xx

it has FFR in the first word, so it listed it within my query...I need only exact matches, but unable to just use exact &quot;FFR&quot; ..have to use &quot;*FFR*&quot; to get any data to appear in the table...any ideas?


I am thinking that it scans the first letter in the cell and since there are multiple words in one cell, I have to use the wildcards, it seems...
 

theknight571

Platinum Member
Mar 23, 2001
2,896
2
81
Jator,

Unless you need it to be done &quot;real time&quot;, the simplest way to do this would be to create an &quot;update&quot; query, where you match on the key and use the fields form the source table to &quot;update&quot; the fields in the target (customer) table.

If you needed it to be done &quot;real time&quot; I'd have to play around a little to see if I could get it to happen automatically. (I have an idea, but I'd have to test it before presenting it here.)

BTW...If you don't mind me asking...Why do you want to duplicate the data like this?

- TK

 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |