Using the DLookUp function, I've had success looking up the default value for certain fields on my form, but I'm run into another problem.
The form tracks transfers of assets, and queries of the tables determine where the asset was most recently, and in doing so determine the default value of the "former" fields for the new records accordingly. However, this only seems to work properly for the first new record, and subsequent records transfering the same asset reference the same people/places as the first new record. Also, directing the form to the first new record transfering an asset, even with all the relevent data entered causes a delay, showing that the queries are being run again, and the default values are being determined a second time, even though it is not the most recent time the asset has been transfered.
1 - Is there a way to make the queries that determine the default values run once, that data set for the new record (Save Record?, Refresh?) and not run again?
or
2 - Should I enter the DLookUp function somewhere else for more appropriate results for what I'm looking for?
My entry looks like this, in the [default value] section, and is similarly referenced for the different fields on the form:
=DLookUp("[NewENum]","qryWhereNow")
PSV or anyone else, do you have any suggestions?
Thanks in advance!
The form tracks transfers of assets, and queries of the tables determine where the asset was most recently, and in doing so determine the default value of the "former" fields for the new records accordingly. However, this only seems to work properly for the first new record, and subsequent records transfering the same asset reference the same people/places as the first new record. Also, directing the form to the first new record transfering an asset, even with all the relevent data entered causes a delay, showing that the queries are being run again, and the default values are being determined a second time, even though it is not the most recent time the asset has been transfered.
1 - Is there a way to make the queries that determine the default values run once, that data set for the new record (Save Record?, Refresh?) and not run again?
or
2 - Should I enter the DLookUp function somewhere else for more appropriate results for what I'm looking for?
My entry looks like this, in the [default value] section, and is similarly referenced for the different fields on the form:
=DLookUp("[NewENum]","qryWhereNow")
PSV or anyone else, do you have any suggestions?
Thanks in advance!