A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Update field on table, with value from 2nd table from form



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 27th, 2009, 08:11 PM posted to microsoft.public.access.gettingstarted
dkowitz
external usenet poster
 
Posts: 2
Default Update field on table, with value from 2nd table from form

I have two tables and a form:
Table 1
Id products pkg size customer addr city state zip

Table 2 (set up as query)
Id product pkg size

Form 1
Has same fields as table 1 and was originally built from that table.
However…I made some changes so the user can enter some things and allow some
fields to default based upon entry of other fields.
Product is a ComboBox that has dropdown of ‘products’ from table 2. When I
select the product it ‘automatically’ fills in the TextBox ‘pkg size’ on the
form. However…it does not update Table 1 like all the other fields.

My ComboBox ‘products’ on the form is set up:
Control Source Products
Row Source qryTable2
Row Source Type Table/Query

My TextBox ‘pkg size’ on the form is set up:
Control Source =[Products].[Column](2)

I can go back into my form, and the ‘pkg size’ is there, but not on Table 1…..
but everything else I enter on my form is there???

Why doesn’t the pkgsize update on Table1 ???

I’ve tried events…AfterUpdate…
Ie; DoCmd.RunSQL "UPDATE [Table1] Set[pkgsize] ='" [Products].[Column](2)
"'"

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.