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  

AutoFill



 
 
Thread Tools Display Modes
  #1  
Old August 6th, 2004, 02:50 AM
Brook
external usenet poster
 
Posts: n/a
Default AutoFill

I have two tables: tblProgramData (fields DesignNumber and
DesignName) and tblProgramorders(OrderDate, Due Date,
DesignNumber, DesignName, Size, etc). I have a simple form
that has OrderDate, Due Date, DesignName, DesignNumber.

What I am trying to do is this:

On my form, on the field DesignName I would like a combo
box that when drops down gives me both the DesignName and
DesignNumber. When the combo box drops down, I want to
choose the design name, have it fill in this field, and
then automatically fill in the DesignNumber field as well.
I would also like to do the same for the DesignNumber
field.

AnySuggestions?

Brook

Please let me know if you have any questions or don't
understand my question?
or email me at: brook at karmaimports dot net
  #2  
Old August 7th, 2004, 05:08 AM
Steve Schapel
external usenet poster
 
Posts: n/a
Default AutoFill

Brook,

Your tblProgramorders table should not contain both the DesignName and
DesignNumber fields. I would remove DesignName entirely from the table.
Then, put a combobox on the ProgramOrders form bound to the
DesignNumber field, and set the tblProgramData table as its Row Source.
Adjust the Properties of the combobox, for example Column Count = 2,
so you can see both the DesignNumber and the DesignName when you drop
down the combobox list. Then, put an unbound textbox on the form to
show the DesignName, and set its Control Source property to
=[DesignNumber].[Column](1)
Another approach would be to base your form on a query which includes
both tables, joined on the DesignNumber field from each, and then you
can include the DesignName field from the tblProgramData table directly
into the query, and hence to the form, and when the DesignNumber
combobox selection is made, the associated DesignName will automatically
be shown. If you do it this way, you should set the Locked property of
the DesignName control to Yes and its Enabled property to No.

--
Steve Schapel, Microsoft Access MVP


Brook wrote:
I have two tables: tblProgramData (fields DesignNumber and
DesignName) and tblProgramorders(OrderDate, Due Date,
DesignNumber, DesignName, Size, etc). I have a simple form
that has OrderDate, Due Date, DesignName, DesignNumber.

What I am trying to do is this:

On my form, on the field DesignName I would like a combo
box that when drops down gives me both the DesignName and
DesignNumber. When the combo box drops down, I want to
choose the design name, have it fill in this field, and
then automatically fill in the DesignNumber field as well.
I would also like to do the same for the DesignNumber
field.

AnySuggestions?

Brook

Please let me know if you have any questions or don't
understand my question?
or email me at: brook at karmaimports dot net

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to delete an autofill address and am not able to do so KevOE Hig Contacts 3 August 5th, 2004 01:00 PM
Changing Autofill Preferences Outlook 2002 Sue Mosher [MVP-Outlook] General Discussion 4 August 5th, 2004 12:42 PM
Autofill alphabet series not possible in Excel? abqhusker Worksheet Functions 1 June 25th, 2004 05:11 PM


All times are GMT +1. The time now is 11:30 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.