Default Date Value

Z

zyus

I hv this 2 fields in same table..

[chqdt] and [bankindt]

In normal circumstances [bankindt] date will follow [chqdt] but user can
change [bankindt] if neccessary.

How to default [bankindt] = [chqdt] for new record created thru form.

TQ
 
W

Wolfgang Kais

Hello "zyus".

zyus said:
I hv this 2 fields in same table..

[chqdt] and [bankindt]

In normal circumstances [bankindt] date will follow [chqdt] but
user can change [bankindt] if neccessary.
How to default [bankindt] = [chqdt] for new record created thru form.

A default value is applied only when creating a new record. In your
case, you are already editing the new record, so you will have to
write an event procedure for the AfterUpdate event of the chqdt control
that does something like
Me.bankindt = Me.chqdt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

COPY RECORD 3
Auto Fill 5
Data Patch By Batch 1
Date Calculation 2
Carry over date from previous record 1
Calculate Null Field 2
Date Validation 1
Default Values in subforms 3

Top