Display a field depending on contents of other field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an issues database and I'd like to have a field enabled depending on
the entry in another field. For example: if the category of issue is
"Delinquency" I'd like to enable entry in a field called "Due Date",
otherwise disable it. I could do it by creating two forms depending on the
type of entry, but I'd rather be more sophisticated.

Any ideas?

Thanks
 
I have an issues database and I'd like to have
a field enabled depending on the entry in another
field. For example: if the category of issue is
"Delinquency" I'd like to enable entry in a field
called "Due Date", otherwise disable it. I could
do it by creating two forms depending on the
type of entry, but I'd rather be more sophisticated.

It'd be simpler to give you code if you gave the name of the Controls in the
Form, and it would save our having to explain or you to guess (I'm going
with the latter option):

If Me.cboCategoryOfIssue = "Delinquency" Then
Me.txtDueDate.Enabled = True
Else
Me.txtDueDate.Enabled = False
End If

If you wanted to do this in the Table's Datasheet view, sorry, you can't.

Larry Linson
Microsoft Access MVP
 

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

Back
Top