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  

Autofilling a textbox and entering data in a textbox.



 
 
Thread Tools Display Modes
  #1  
Old September 7th, 2009, 09:49 PM posted to microsoft.public.access.forms
pawojczak
external usenet poster
 
Posts: 1
Default Autofilling a textbox and entering data in a textbox.

I am trying to have a text box (unit) autofill after I enter data in another
text box (docu nr). Is there any suggestions as to how I can do this?

The docu nr text box contains a a six character code that refers to a unit.
This six character code is the primary key for the unit.
After I type in the docu nr I want the unit to be displayed in the unit text
box.

docu nr format is AAAAAA-1111-1111
unit format is text

docu nr is stored in a table named tblDocuNr

unit is stored in a table named tblUnitChoices

I have been attempting to write a VBA code in the afterupdate portion of the
docu nr text box on my form, but have not perfected it. Any Help would be
appreciated, thanks in advance.

The AAAAAA portion of docu nr refers to a unit.


 




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:02 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.