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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Writing data to table from listbox/text box



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2009, 11:19 PM posted to microsoft.public.access.forms
Amanda
external usenet poster
 
Posts: 335
Default Writing data to table from listbox/text box

Access 2003 is what I'm using.

I have a list box with 3 columns (MLS, Street Number, Street Name) on my
form. Right now, only the bound column (Street Name) is being written to the
table. I have a text box on the form that is being updated upon selection
with the right Street Number, but when I write the record (by either closing
the form or going to a new record), the Street Number isn't being updated in
the table. Everything else is though. Any suggestions as to what step I've
forgotten would be great!
  #2  
Old June 2nd, 2009, 11:57 PM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Writing data to table from listbox/text box

If you put 2 bound and hidden textboxes on your form (one for mls and one
for st no), when user selects an item from the listbox, you can use the
after update event of the listbox to put the values for mls and st no. in
the respective textboxes.
When you save the record, the other 2 values will automatically go into the
table.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia



"Amanda" wrote in message
...
Access 2003 is what I'm using.

I have a list box with 3 columns (MLS, Street Number, Street Name) on my
form. Right now, only the bound column (Street Name) is being written to
the
table. I have a text box on the form that is being updated upon selection
with the right Street Number, but when I write the record (by either
closing
the form or going to a new record), the Street Number isn't being updated
in
the table. Everything else is though. Any suggestions as to what step
I've
forgotten would be great!



 




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 06:04 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.