Making Yes/No field set to 'Yes' if next field contains text

d.silverman

New Member
Joined
Jul 28, 2004
Messages
25
Hi - I expect this is either easy or obviously not possible, but here's my basic question:

I want to make a Yes/No field automatically set to Yes when the next field contains any text.. I am inputting questionnaire responses where there is a question like "do blah have any advantages, if so what are they?". If people have given a response listing advantages, I also want a check box field in Access denoting that they do think there are advantages. I don't want to use a query, rather I want the check box to check itself whenever data is entered in the text field.

Possible? Thanks in advance
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Re: Making Yes/No field set to 'Yes' if next field contains

You could try using some event code on the Advantages field.
Select this field in Design view, click the Properties, then the Events tab.
Double-click in the blank line for After Update. You'll see [Event Procedure].
Click the Builder (...) button to view the code window.
Enter this code:
Code:
If Len([Avantages].Text)>0 Then
   [MyCheckBox]=True
Else
   [MyCheckBox]=False
End If
Change the names of the controls (in square brackets) to suit.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,787
Messages
6,161,960
Members
451,734
Latest member
Anmol Pandey19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top