Wayne1158 Posted June 21, 2005 Posted June 21, 2005 I have a checkbox feild which I use to select records for printing. Once I have printed the records I need to find a way to clear the check box. I have read posts that Set Field[field;""] should do the trick. However the only way I can see of entering Feild;"" is through setting a calculation, but when I try this it asks for an operator. Any suggestions would be appreciated, this is probably a real simple one.
SlimJim Posted June 21, 2005 Posted June 21, 2005 You need to use Replace Field Contents. You can set this up as a script attached to a button. If you want to ensure the checkbos is clear for the current found set only (presumably the records you are printing) then you don't need a script just attach the one operation to a button. If you want it to work across all records then you may need to script in a Show All Records first.
Lee Smith Posted June 21, 2005 Posted June 21, 2005 Hi Wayne, and Welcome to the Forum. You can use a couple of different scripts. As Slim Jim suggested, you could use the Replace / Substitute Functions from the Menu or as a Script Step. I like the Script approach if it is an on going need. Try something like this: Go to Layout [ original layout ] Go to Record/Request/Page [ First ] Loop
Wayne1158 Posted June 21, 2005 Author Posted June 21, 2005 Thanks guys, after spending a whole day trying to figure this out you solved my problem in a few minutes, appreciate the help.
tarheel Posted June 24, 2005 Posted June 24, 2005 I was wondering, is this the method to use to clear fields when entering a data entry layout? When I enter mine there is always the last record entered showing but I want it to show blank fields. Bob...
Lee Smith Posted June 24, 2005 Posted June 24, 2005 You could create a script that goes to a layout where you create your records, Find All Records, Create a New Record, Omit that new record, and then Find Omitted. This will leave a blank new record for you to use. The Script steps would look something like this: Go to layout (Record Creation) Find All New Record Requests Omit Show Omitted Go to Field (Name of Field to go to) HTH Lee
tarheel Posted June 25, 2005 Posted June 25, 2005 Very interesting. Thanks for the info. I'll give that a go. Bob...
LaRetta Posted June 25, 2005 Posted June 25, 2005 Actually you don't need to do anything other than: Go To Layout [ data entry layout ] New Record/Request You will then be on your new 'blank' record. LaRetta
tarheel Posted June 25, 2005 Posted June 25, 2005 Great, I think I should have know that, Duh. Thanks for the info. Bob...
Recommended Posts
This topic is 7094 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now