473,586 Members | 2,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with a form and checkbox

I am not an expert at access and I need a little help with a form. I
have a form that is linked to a table with address information. My form
has a checkbox linked to a field in the database to show when an
address has been gone through and confirmed. I would like to have a box
on the form that shows how many records have been checked and have "-1"
in the table. I don't know how to do this and I asked a consultant that
helps me from time to time and he said that it was complicated and
would take almost a day to complete.
I didn't think that it sounded like a difficult think to do and I
thought I would ask people who know more than I do. Thanks for any help.

Nov 13 '05 #1
4 1464
On 30 Jun 2005 08:27:04 -0700, mo*********@att .net wrote:
I am not an expert at access and I need a little help with a form. I
have a form that is linked to a table with address information. My form
has a checkbox linked to a field in the database to show when an
address has been gone through and confirmed. I would like to have a box
on the form that shows how many records have been checked and have "-1"
in the table. I don't know how to do this and I asked a consultant that
helps me from time to time and he said that it was complicated and
would take almost a day to complete.
I didn't think that it sounded like a difficult think to do and I
thought I would ask people who know more than I do. Thanks for any help.


Add an unbound control to the form.
Set it's Control source to:
=ABS(SUM([CheckBoxName]))

Also code the Check Box AfterUpdate event:
Me.Refresh

so that any changes are immediately shown in the control.

Almost a day to do, huh!!!
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
On 30 Jun 2005 08:27:04 -0700, mo*********@att .net wrote:
I am not an expert at access and I need a little help with a form. I
have a form that is linked to a table with address information. My form
has a checkbox linked to a field in the database to show when an
address has been gone through and confirmed. I would like to have a box
on the form that shows how many records have been checked and have "-1"
in the table. I don't know how to do this and I asked a consultant that
helps me from time to time and he said that it was complicated and
would take almost a day to complete.
I didn't think that it sounded like a difficult think to do and I
thought I would ask people who know more than I do. Thanks for any help.


Add a textbox to the form. In the newly added textbox, put the
following as the ControlSource (under the Data tab in properties):

=DCount("[myfield]","mytable","my field=-1")

Substitute the correct names for your field and your table.

Almost a day to complete, huh? I wonder what else you are paying
through the nose for?

mike

Nov 13 '05 #3
Thank you very much for your replys. The box works great now, just like
I needed. I only used my consultant a few times, most of it was a
learning experience. I try to do it on my own now and I guess I learned
enough to ask in the right place. Thanks again.

Nov 13 '05 #4

<mo*********@at t.net> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Thank you very much for your replys. The box works great now, just like
I needed. I only used my consultant a few times, most of it was a
learning experience. I try to do it on my own now and I guess I learned
enough to ask in the right place. Thanks again.


This is, indeed, a good place to ask.

The FAQ for this newsgroup at http://www.mvps.org/access is also a great
source of information. It even includes
http://www.mvps.org/access/netiquette.htm, which is as chock-full of good
suggestions about effectively using this and other newsgroups as the rest of
the site is full of good information about Access, and links to other
sources of information. Another site with some of the same, and a few
different, links is http://ntaccess.tripod.com.

You'll find a good many other references posted here from time to time, too.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1853
by: Kurt A. Kaylor | last post by:
Hey, I am trying to get some code I have written to work. Runs well until I make a request. The I get some problems with PHP related to an SQL statement. Here are the errors :Warning: mysql_result(): supplied argument is not a valid MySQL result resource in c:\program files\apache group\apache\htdocs\veiworderform.php on line 25 (error goes...
11
1543
by: Jack | last post by:
I have a asp form where among others there are few text boxes and one check box. The checkbox is to indicate whether the entry is final. The checkbox is attahced to a field in table of type yes/no. After saving the documents,the form is refreshed. At this point, if the checkbox has been saved with checked, it shows unchecked, if it has been...
3
2449
by: Adam Toline | last post by:
In reference to the following: http://www.bellecose.com/form.htm At the top of each column there is a box for "All". When one is checked I need to check all of (and only) those boxes underneath. Now, the rub here is that every checkbox on the page (except the "All"s)
7
2164
by: Stephen | last post by:
I have some code which I call from a custom validator however I seem to have got the logic wrong and im having trouble figuring out how to write my code to get things to work the way I require. Below is the script I currently use and what it does along with what I would like it to do. Can someone please help me work how I can fix this. ...
1
1685
by: Mel | last post by:
I have a form with 2 submit buttons (s1 s2) and a list of checkboxes this is what i want to do: on a single checkbox select: i want to display s1 on two or more checkbox selection: i want to display s2 & hide s1 can you please help ? a simple example is highly appreciated
0
2248
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional assistance. I say additional because I've already had help which is greatly appreciated. I do try to take the time and understand the provided script...
2
1595
by: Spad2 | last post by:
hi, does anyone know how to make sure at least one checkbox is checked but no more than three are checked? i need to use vbscript in asp. this is my form: <html> <head> <title>Task 5</title> </head> <body> <h1>Hobby Selection Page<br /></h1> <form method="post" action="task5.asp" id="hobbies" > <p>
3
3002
by: cuties | last post by:
Hi all.... i'm very new to this programming language. i'm required to fulfill this task in the company i'm doing my practical. i hope i can get guide for my problem... Here is the script i already wrote but i'm having problem to move forward. my problem is : 1. how do i assign each checkbox to have equal value with the value of the...
4
1581
by: mtgrizzly52 | last post by:
I have to be honest as I haven't done an all out search on this problem, due to having to get this database completed by tonight, and this problem just popped up. Ok the problem is that I have had a nicely working form except when I tried to run through my records (via the form) everytime I pushed the advance button to move to the next record...
3
1880
by: milov | last post by:
Project to do simulation testing (me teacher). Page one writes in real time to page two...both displayed at sam time with frames. Code below. Problem...I want to keep score. Each choice needs a value between (-3 and 3) to be summed for final score. second problem, I want checkbox to be permanent, that is once selected no unselect. Thanks fro...
0
7841
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8204
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3838
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.