|
-
Apr 24th, 2006, 10:21 AM
#1
Thread Starter
Addicted Member
[RESOLVED]How to add a data to a field on clicking a button
Hi,
How can I set a field value (Yes no Type) by click on a button in a form in Access ???, the form derives its data from a table where all the fields are defined...
thanks
arunb
Last edited by arunb; Apr 26th, 2006 at 12:17 AM.
-
Apr 24th, 2006, 10:56 AM
#2
Re: How to add a data to a field on clicking a button
Moved to Office Development
-
Apr 24th, 2006, 04:05 PM
#3
Frenzied Member
Re: How to add a data to a field on clicking a button
Is it a bound control, or in code? If bound, use a checkbox instead of a button, if you can. If not, say you don't display the value, try code (DAO, which is faster if you're staying in Access, & not in VB6, .Net, etc):
[/Highlight]
strSQL = "UPDATE tblFoo SET fldYesOrNo = True WHERE ID = 999"
DoCmd.RunSql strSQL
[/Highlight]
Change the names to whatever is appropriate
Tengo mas preguntas que contestas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|