|
-
Jun 26th, 2003, 10:52 AM
#1
Thread Starter
Addicted Member
Fast Love. I mean Help. (Solved)
Right, I'll set the scene.
Coding a Access Database. Using VBA.
The question:
On a form, how can I make an IF statement record specific, instead of form specific?
EG
Private Sub Contacted_Owner_Click()
If Contacted_Owner.Value = no Then
Repair_Agreed.Visible = False
Combo17.SetFocus
Else
Repair_Agreed.Visible = True
Command39.Visible = False
Label40.Visible = False
End If
End Sub
Works. Until I scan through the records. When I do that it keeps the FIRST records value.
Quick help would be good
I know I'm missing something REALLY simple.....
Bazz
Last edited by Bazzlad; Jun 30th, 2003 at 04:30 AM.
-
Jun 27th, 2003, 08:45 AM
#2
Hyperactive Member
If Contacted_Owner.Value = no Then
Repair_Agreed.Visible = False
Combo17.SetFocus
Else
Repair_Agreed.Visible = True
Command39.Visible = False
Label40.Visible = False
End If
put that code in your forms On_Current event instead of a command button.. for each records that even will fire and trigger the code.
Cheers
-
Jun 30th, 2003, 03:25 AM
#3
Thread Starter
Addicted Member
???
It isn't working!????!!!
Arggghh help!
Bazz
-
Jun 30th, 2003, 04:30 AM
#4
Thread Starter
Addicted Member
?
Ok it's working now....alhough it wasn't???!!!???
Thanks for your help!
Bazz
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|