T
Tom
Hi,
I am using Access 2000, and I would like to be able to have a field updated
based on the entries in other fields. I have a field (Tracking Code), which
I would like to be built based on other information I have already entered.
I can create a Text Box and have it work just fine, but I need for it to
store the restult in the [Tracking Code] field.
Here is the formula I am using:
=Format([Created Date],"yyyymmdd") & "." & [Batch Number] & "." &
IIf([Policy Number] Is Null,0,[Policy Number]) & "." & IIf([Policy Holder]
Is Null,[Company],[Policy Holder])
Here is an example of the result:
20030905.07.410001268000001.QuickNGo
I have used this code in the "On Got Focus" Event field, and it yeilds no
results. I have tried using the Default Value as well, and it will only
update when I create a new record (an of course everything is blank at that
point). I can get it to behave exactly like I want if I create a Text box
and enter the formula in the Default Value.
Your help is appreciated!
Thanks,
Tom
I am using Access 2000, and I would like to be able to have a field updated
based on the entries in other fields. I have a field (Tracking Code), which
I would like to be built based on other information I have already entered.
I can create a Text Box and have it work just fine, but I need for it to
store the restult in the [Tracking Code] field.
Here is the formula I am using:
=Format([Created Date],"yyyymmdd") & "." & [Batch Number] & "." &
IIf([Policy Number] Is Null,0,[Policy Number]) & "." & IIf([Policy Holder]
Is Null,[Company],[Policy Holder])
Here is an example of the result:
20030905.07.410001268000001.QuickNGo
I have used this code in the "On Got Focus" Event field, and it yeilds no
results. I have tried using the Default Value as well, and it will only
update when I create a new record (an of course everything is blank at that
point). I can get it to behave exactly like I want if I create a Text box
and enter the formula in the Default Value.
Your help is appreciated!
Thanks,
Tom