D
Dkline
I've been trying to set a default value in a combobox when a form first
loads. I've tried by simply setting the default value directly in the
property sheet i.e. without using code but some process seems to overwrite
the default value in the property sheet.
So I'm using this code:
Private Sub Form_Open(Cancel As Integer)
Me![cmbProgram].DefaultValue = "Whatever"
End Sub
Is there a better way to do this?
The above code works on my machine but not on my boss's machine. I've been
trying to debug starting from the above Form_Open but that is a dead end.
How can I debug through each process that may cause the change in the
default value when they are not directly connected?
loads. I've tried by simply setting the default value directly in the
property sheet i.e. without using code but some process seems to overwrite
the default value in the property sheet.
So I'm using this code:
Private Sub Form_Open(Cancel As Integer)
Me![cmbProgram].DefaultValue = "Whatever"
End Sub
Is there a better way to do this?
The above code works on my machine but not on my boss's machine. I've been
trying to debug starting from the above Form_Open but that is a dead end.
How can I debug through each process that may cause the change in the
default value when they are not directly connected?