Field is based on an expression and cannot be edited

T

Tiffany

How can have an expression in a field but also allow a
user to type over the expression? When I attempt to type
over the expression I recieve a message at the bottom of
my screen the the Field is based on an expression and
cannot be edited.
 
B

Bruce M. Thompson

How can have an expression in a field but also allow a
user to type over the expression? When I attempt to type
over the expression I recieve a message at the bottom of
my screen the the Field is based on an expression and
cannot be edited.

If you are trying to store the value in a field, then make sure the textbox is
bound to that field (the "Control Source") and then set the textbox's "Default
Value" to the expression. Then, when a new record is created, the result of the
expression will be the entered into the field as the default value, but will
allow the user to type in a different value.
 
J

John Viescas

Tiffany-

There's no way to update a field that's the result of an expression. Think
about it. Let's say the expression is a simple MyTable.FieldA & " " &
MyTable.FieldB. If you type in the box that is the result of this
expression, how does Access know whether you mean to update FieldA or
FieldB. So, it just doesn't allow it. What is it you're really trying to
do?

--
John Viescas, author
"Microsoft Office Access 2003 Inside Out"
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)
http://www.deanforamerica.com/site/TR?pg=personal&fr_id=1090&px=1434411
 

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

Top