RuudVanMens
New member
- Local time
- Today, 19:09
- Joined
- Jan 27, 2011
- Messages
- 3
In the meantime (time flies) I am 70 years old, retired and for the first time I am trying to set up a simple database to get a form which will be used by another old guy to make his work a lot easier. Using MS Access 2000 I did setup the next code.
Private Sub Selectievakje32_Click()
If Me.Direct_opgelost = False Then
MsgBox "Ook de andere velden (rechts) invullen!"
Else
MsgBox "De andere velden (rechts) hoeven niet ingevuld te worden!" 'Rest of the fields at the right side will not be used anymore and will be invisible.
End If
If Me.Direct_opgelost = True Then
Me.Doorgegeven_aan.Visible = False
Me.Datum2.Visible = False
Me.Afgehandeld_door.Visible = False
Me.Datum3.Visible = False
Else
If Me.Direct_opgelost = False Then
Me.Doorgegeven_aan.Visible = True
Me.Datum2.Visible = True
Me.Afgehandeld_door.Visible = True
Me.Datum3.Visible = True
End If
End If
End sub
The purpose of this code is: when clicking Selectievakje32 in the form the message box tells the user "De andere velden (rechts)hoeven niet ingevuld te worden!" meaning that the rest of the fields at the right side will not be used anymore and will be invisible.
Only, the purpose is that only those fields of the current record aren't visible. Now all those fields of all records at the right side of Selectievakje32 are not visible and that is not what I want.
I hope to get an answer at this site and if so I am very grateful in advance.
Ruud van Mens
Private Sub Selectievakje32_Click()
If Me.Direct_opgelost = False Then
MsgBox "Ook de andere velden (rechts) invullen!"
Else
MsgBox "De andere velden (rechts) hoeven niet ingevuld te worden!" 'Rest of the fields at the right side will not be used anymore and will be invisible.
End If
If Me.Direct_opgelost = True Then
Me.Doorgegeven_aan.Visible = False
Me.Datum2.Visible = False
Me.Afgehandeld_door.Visible = False
Me.Datum3.Visible = False
Else
If Me.Direct_opgelost = False Then
Me.Doorgegeven_aan.Visible = True
Me.Datum2.Visible = True
Me.Afgehandeld_door.Visible = True
Me.Datum3.Visible = True
End If
End If
End sub
The purpose of this code is: when clicking Selectievakje32 in the form the message box tells the user "De andere velden (rechts)hoeven niet ingevuld te worden!" meaning that the rest of the fields at the right side will not be used anymore and will be invisible.
Only, the purpose is that only those fields of the current record aren't visible. Now all those fields of all records at the right side of Selectievakje32 are not visible and that is not what I want.
I hope to get an answer at this site and if so I am very grateful in advance.
Ruud van Mens