T
terry w
hello - I have some code attached to several of my ComboBoxes that works
fine, but I'm not if it is 'best practice' coding. I'd really like any
suggestions for improvement:
a) If I have to walk through the items in a ComboBox, i do this...
n = 0
Do While Not IsNull(Me!cboGroup.ItemData(n))
... code here ....
n = n + 1
Loop
Is this the best way to walk through these items? Is there a better way
involving 'Do While Not rs.EOF'?
b) Say I have three ComboBoxes and I only want to proceed
if they all show values...
If Len(cboA) * Len(cboB) * Len(cboC) > 0 Then .....
Again, is this the accepted way to do this sort of thing? I want to make
sure i don't run into any unexpected outcomes.
regards, Terrance
fine, but I'm not if it is 'best practice' coding. I'd really like any
suggestions for improvement:
a) If I have to walk through the items in a ComboBox, i do this...
n = 0
Do While Not IsNull(Me!cboGroup.ItemData(n))
... code here ....
n = n + 1
Loop
Is this the best way to walk through these items? Is there a better way
involving 'Do While Not rs.EOF'?
b) Say I have three ComboBoxes and I only want to proceed
if they all show values...
If Len(cboA) * Len(cboB) * Len(cboC) > 0 Then .....
Again, is this the accepted way to do this sort of thing? I want to make
sure i don't run into any unexpected outcomes.
regards, Terrance