Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display data to a datasheet form field automatically

Status
Not open for further replies.

acnovice

Programmer
Jan 27, 2005
100
US
I have two tables and one form.

Table Form
1. tblCustomerOrderLog -- frmCOL (it is datasheet view).
2. tblCustomer has fields, CODE, PaymentTerms ...

On the frmCOL, I put CODE and PaymentTerms to display data.
CODE field is a combo box that I can choose the customer code.

My question is,
If I choose the CODE, I want PaymentTerms field display automatically as long as data in it.

I appreciate your help.
 
acnovice . . . . .

Are you saying you to [blue]show/hide[/blue] PaymentTerms acording to [blue]data/NoData[/blue] in the PaymentTerms?

Calvin.gif
See Ya! . . . . . .
 
Why not using the 3rd option of the Combo wizard ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 

TheAceMan1,

No. PaymentTerms will be showed always. If there's data in tblCustomer, it brings up. Otherwise, just blank.
It doesn't need to hide the column.


PHV,

If I use 3rd options of the Combo wizard, that will find a record on my form based on the value but I want to bring them from "tblCustomer".

I'm working on "frmCOL" and CODE and PaymentTerms come from different table which is "tblCustomer".

Can you give more info ?
 
acnovice . . . . .
[blue]When you select [purple]customer code[/purple] from the combobox and [purple]PaymentTerms[/purple] exist for that code . . . display [purple]PaymentTerms[/purple]. otherwise not . . . Yes![/blue]
If the above is true have a look at the [purple]DLookup[/purple] function . . .

Calvin.gif
See Ya! . . . . . .
 

TheAceMan1,

Thank you for the answer.
I fixed it using DLookup function as you said.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top