[access] field visible on condition

Renaissance Posted messages 2 Status Member -  
wardan Posted messages 6 Registration date   Status Member Last intervention   -
Hello, I am new to this forum and I am seeking help from Access specialists. I am creating a furniture management database (tables, forms) and so far, no problem. In a form, I have two fields: a "Category" field and a "Seat Height" field. I want the "Seat Height" field to appear when the "Category" field contains the value "Seat". I wrote the following code in the After Update property of the "Category" field:
If [Category] = "Seat" Then
[Seat Height].Visible = True
Else
[Seat Height].Visible = False
End If
This does not work because it applies to all records in the table and does not remain in memory on the specific record.
How can I do this? Thank you for your valuable help
Configuration: Windows XP Access 2003

26 answers

  • 1
  • 2
Anonymous user
 
Hello,

you also need to put this code on the current() event of the form.

--
When Jimmy says what’d I say, I love you baby
It’s like saying, the whole province singing in English
10
wardan Posted messages 6 Registration date   Status Member Last intervention  
 
It works well
Thank you very much
0
  • 1
  • 2