I can get my looping to work!!
What I want is to be able to load a form up with several checkboxes. According to the ID that has been chosen, the appropriate check boxes should either be selected or deselected. I'm pretty sure a loop is needed, I've got it working soi that the first record is chosen, but I think I need to look round several times to get the other records selected, don't I?
I get error messages when I use .EOF
I've posted a similar question before, but with no response, I'm really stuck, and totally new to Access and VB scripting, I'm picking it up as I go along, so any tips will be much appreciated.
THANK YOU!!! Elise
BTW: just so you can see my thinking (what thinking!) the code goes something like this so far:
Do until .EOF
If Material = "composites" Then
ChkComposites = True
End If
If Material = "metal" Then
ChkMetal = True
End If
etc.
Loop
But all the other records are on different pages of the forms.
[This message has been edited by Elise_L (edited 07-25-2000).]
What I want is to be able to load a form up with several checkboxes. According to the ID that has been chosen, the appropriate check boxes should either be selected or deselected. I'm pretty sure a loop is needed, I've got it working soi that the first record is chosen, but I think I need to look round several times to get the other records selected, don't I?
I get error messages when I use .EOF
I've posted a similar question before, but with no response, I'm really stuck, and totally new to Access and VB scripting, I'm picking it up as I go along, so any tips will be much appreciated.
THANK YOU!!! Elise
BTW: just so you can see my thinking (what thinking!) the code goes something like this so far:
Do until .EOF
If Material = "composites" Then
ChkComposites = True
End If
If Material = "metal" Then
ChkMetal = True
End If
etc.
Loop
But all the other records are on different pages of the forms.
[This message has been edited by Elise_L (edited 07-25-2000).]