How Write New Field Data From Form Entry Into A Separate Table

  • Follow


I have a form which contains a listbox.  When the user double-clicks on the 
listbox a 2nd form opens and the user can make a new record entry.  On this 
2nd form is a field named "txtChillN".  When the user has made the entry into 
this 2nd form I want the value of "txtChillN" to be entered into an unbound 
table named "tblChills".  The field name in this table is "ChillN'.   How do 
I do this?
0
Reply Utf 4/3/2010 12:29:01 PM

Simplest solution would be to Execute an Append query statement.

You can mock up a query using any old value for the insert. Then switch the 
query to SQL view to see an example of the string you need to use in your 
VBA code.

For sample code, see:
    Action queries: suppressing dialogs, while knowing results
at:
    http://allenbrowne.com/ser-60.html

-- 
Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"SteveL5231" <SteveL5231@discussions.microsoft.com> wrote in message 
news:DC4AD5F3-CA7D-46C8-9CD7-763421F8045A@microsoft.com...
> I have a form which contains a listbox.  When the user double-clicks on 
> the
> listbox a 2nd form opens and the user can make a new record entry.  On 
> this
> 2nd form is a field named "txtChillN".  When the user has made the entry 
> into
> this 2nd form I want the value of "txtChillN" to be entered into an 
> unbound
> table named "tblChills".  The field name in this table is "ChillN'.   How 
> do
> I do this? 

0
Reply Allen 4/3/2010 1:51:44 PM

1 Replies
388 Views

(page loaded in 0.034 seconds)


Reply: