S
SadGrue
I'm trying to create a form where users can input default values for certain
fields for all new records, since they will be creating lots of records with
similar data, but it will change too often to use a global default on the
underlying table. It seemed simple enough in principle: I have an unbound
control I stuck on the form (a text box), and I want to set the default value
of a bound control to the value of the unbound control.
The problem is that when I go to the "Default Value" line in the property
sheet for the bound control, I can't for the life of me figure out how to get
it to read the value in the unbound control. I'm trying to use the expession
builder and just selecting the name of my unbound control, which produces a
default vaule line of "=[nameofunboundcontrol]" (that's obviously not what
it's called, but you know what I mean). This seems to easy to be true... and
it is. I have spent hours fiddling with it and can't get any result in my
bound control field on new records except "#Name?" - well, that or just blank.
Any advice on how to write an expression that will succesfully read as a
default a value from elsewhere on the form would be immensely appreciated.
fields for all new records, since they will be creating lots of records with
similar data, but it will change too often to use a global default on the
underlying table. It seemed simple enough in principle: I have an unbound
control I stuck on the form (a text box), and I want to set the default value
of a bound control to the value of the unbound control.
The problem is that when I go to the "Default Value" line in the property
sheet for the bound control, I can't for the life of me figure out how to get
it to read the value in the unbound control. I'm trying to use the expession
builder and just selecting the name of my unbound control, which produces a
default vaule line of "=[nameofunboundcontrol]" (that's obviously not what
it's called, but you know what I mean). This seems to easy to be true... and
it is. I have spent hours fiddling with it and can't get any result in my
bound control field on new records except "#Name?" - well, that or just blank.
Any advice on how to write an expression that will succesfully read as a
default a value from elsewhere on the form would be immensely appreciated.