Bev has the right answer.
Additional note; when asking for help, and saying "I can't get this to work"
We really need you to show us what "this" is.
"I tried making a button with a script but I couldn't get my script to work."
What is your script?
Thanks for the answer. I actually had tried that in my script but for some reason it didn't work initially. It seems like every now and then something in my program just stops working for a minute or so and I have to close out of filemaker and reopen it to get it to work (I am using the trial version so I can work at home until my trial is expired and then I will continue at my work) so I wonder if that is what happened the first time I tried it.