Solved: Populating a Field with a Button

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

irritable_badger

Thread Starter
Joined
Mar 9, 2008
Messages
17
Is it possible to populate a field in a database with a button? I have a Yes/No field that I want to make 'yes' when the 'save' button on a form is pressed? How do I go about doing that?

Also, do I have to put a control on my form to accomplish this or can the button populate the field directly?

Thanks!
 

OBP

Joined
Mar 8, 2005
Messages
19,895
You really need the control on the form, but it need not be visible.
assuming that it is called "Closed" then use this in the Close Form Button before the Docmd.close
me.Closed = -1
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top