Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 09:41 AM
vulcaned@isp.com
Guest
 
Posts: n/a
Default Update checkbox on a Continuous Form

Hi All,
Hopefully I explain/ask my question correctly;

In Access97 on a continuous form I display records direct from a table.
Two displayed fields are policy nbr and a approved checkbox.
In the displayed records I could have multiples of any given policy
nbr. What I am hoping I can program is when a user clicks in the
approval checkbox(makes it true) I then want to check off the rest of
the approval boxes for that Same policy nbr that is in the set of
displayed records.

Can that be done programmically(vba)? if so, what does the code look
like.

thanks
bobh.

  #2  
Old November 13th, 2005, 09:41 AM
rquintal@sympatico.ca
Guest
 
Posts: n/a
Default Re: Update checkbox on a Continuous Form

>What I am hoping I can program is when a user clicks in the[color=blue]
>approval checkbox(makes it true) I then want to check off >the rest of[/color]
[color=blue]
>the approval boxes for that Same policy nbr that is in the >set of[/color]
displayed records.

In the AfterUpdate event for the form, you need to run a query that
sets the field true, something like

if me.approval = true then
docmd.runsql("Update [tablename] set [checkfieldname]= true where
[policy nbr] = " & me.[policy nbr])
end if

  #3  
Old November 13th, 2005, 09:42 AM
vulcaned@isp.com
Guest
 
Posts: n/a
Default Re: Update checkbox on a Continuous Form

Thanks, with a tiny bit of addition(namely, before running this code I
had to set the focus off of the detail section of the continuous form)
your suggestion worked perfectly, again Thanks
bobh.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles