G
gsnidow via AccessMonster.com
Greetings all. I am using Access 2003 .ADP with SQL Server 2000. I have a
search popup where the user makes choices from some combos, and the SQL is
generated behind the scenes. I have been asked to include some option
buttons that could be used to further restrict the records. So far I have
two option buttons, and I have set the default value to -1 on the form's load
event, like the below...
Private Sub Form_Load()
On Error GoTo Err_Form_Load
Me.optExcludeComplete = -1
Me.optExcludeSplitter = -1
Exit_Form_Load:
Exit Sub
Err_Form_Load:
MsgBox Err.description
Resume Exit_Form_Load
End Sub
My question is, if a user wants the default for either or both of them to be
0 instead of -1, how can I approach this. It seems like I would need to
allow users to alter the sub, and I'm not sure how I could do this. Thank
you
Greg
search popup where the user makes choices from some combos, and the SQL is
generated behind the scenes. I have been asked to include some option
buttons that could be used to further restrict the records. So far I have
two option buttons, and I have set the default value to -1 on the form's load
event, like the below...
Private Sub Form_Load()
On Error GoTo Err_Form_Load
Me.optExcludeComplete = -1
Me.optExcludeSplitter = -1
Exit_Form_Load:
Exit Sub
Err_Form_Load:
MsgBox Err.description
Resume Exit_Form_Load
End Sub
My question is, if a user wants the default for either or both of them to be
0 instead of -1, how can I approach this. It seems like I would need to
allow users to alter the sub, and I'm not sure how I could do this. Thank
you
Greg