D
dtm
OK since my last request wasnt clear enough for some people let me try this
again.
I have a form where i select a value from a drop down list. This then
populates part of the form.
I have a yes and no option button created with the 'option group'. When this
form loads neither of the option buttons are selected. when i select from
the drop down nothing is selected for the option buttons either.
The option buttons enable or disable a text box depending on if the yes or
no is selected. Enable for Yes, disabled for No.
I have the following code behind the Y/N buttons
If [Frame20] = "1" Then [rma_log.Pendings] = "Yes" Else
[rma_log.Pendings] = "No"
If [Frame20] = "1" Then [PendingNumber].Enabled = True Else
[PendingNumber].Enabled = False
So i write a yes or no to the table and enable or disable the next box.
Here is my problem. when i select from the drop down to prefill the form it
also prefills this enabled or disabled text box (pendingnumber). remember by
default no y/n is selected so the text box is disabled even if it has data
in it.
Fine, i solved this by putting this code behind the "pendingnumber" text
box...
If [PendingNumber] > "0" Then [PendingNumber].Enabled = True Else
[PendingNumber].Enabled = False
Now the problem is i cannot get the yes or no option buttons to select with
code. I want to be able to prefill the form from the dropdown and have the
appropriate yes or no selected. I have tried this code behind the
pendingnumber box but it doesnt work: If [PendingNumber] > "0" Then
[Option23] = "1" Else [option24] = "0"
Can anyone help me out with this?
again.
I have a form where i select a value from a drop down list. This then
populates part of the form.
I have a yes and no option button created with the 'option group'. When this
form loads neither of the option buttons are selected. when i select from
the drop down nothing is selected for the option buttons either.
The option buttons enable or disable a text box depending on if the yes or
no is selected. Enable for Yes, disabled for No.
I have the following code behind the Y/N buttons
If [Frame20] = "1" Then [rma_log.Pendings] = "Yes" Else
[rma_log.Pendings] = "No"
If [Frame20] = "1" Then [PendingNumber].Enabled = True Else
[PendingNumber].Enabled = False
So i write a yes or no to the table and enable or disable the next box.
Here is my problem. when i select from the drop down to prefill the form it
also prefills this enabled or disabled text box (pendingnumber). remember by
default no y/n is selected so the text box is disabled even if it has data
in it.
Fine, i solved this by putting this code behind the "pendingnumber" text
box...
If [PendingNumber] > "0" Then [PendingNumber].Enabled = True Else
[PendingNumber].Enabled = False
Now the problem is i cannot get the yes or no option buttons to select with
code. I want to be able to prefill the form from the dropdown and have the
appropriate yes or no selected. I have tried this code behind the
pendingnumber box but it doesnt work: If [PendingNumber] > "0" Then
[Option23] = "1" Else [option24] = "0"
Can anyone help me out with this?