473,461 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Properly using checkboxes in a datasheet form

Hello,

I want to use check boxes on a form in datasheet form that has a query
for a controlsource. Here is the basics of it:

I created a query that will return all the fields in one table then in
the next cell I am returning a value of -1 or 1 depending if one field in
both tables are the same (This is used for the checkbox). On the form is one
textbox and one checkbox that reflect the query when run, This is ok. My
problem is that when I try to click the checkbox I get a "Recordset is not
updateable" warning in the bottom left hand corner. All I want it to do is
execute the code in my clickevent handler which deletes or adds a field into
one of my tables and then requeries the query. I figured I could unbind the
checkbox, but I don't know how to keep the data in sync. Can anyone help?

I would rather not unbind my checkbox to the query I'm just looking for
a way to execute the code in my click event.
Dec 17 '05 #1
2 3310
Just for clarification I have my sql view code for the queries.

query 1:
SELECT tblCodeJurisdiction.Jurisdiction, IIf(IsNull([SiteID]),0,[SiteID]) AS
[This Site]
FROM tblCodeJurisdiction LEFT JOIN qrySubSiteJurisdiction ON
tblCodeJurisdiction.JurisdictionID = qrySubSiteJurisdiction.JurisdictionID;

query 2: (qrySubSiteJurisdiction)
SELECT tblSiteJurisdiction.SiteID, tblSiteJurisdiction.JurisdictionID
FROM tblSiteJurisdiction
GROUP BY tblSiteJurisdiction.SiteID, tblSiteJurisdiction.JurisdictionID
HAVING (((tblSiteJurisdiction.SiteID)=[Forms]![Transaction Info]![SiteID]));
Dec 17 '05 #2
Actually sorry,

I just figured it out, It was the GROUP BY clause that was making things
break. I just removed it and changed the HAVING clause to a WHERE clause.
"Brent Ritchie" <br**********@personainternet.com> wrote in message
news:HC*******************@news20.bellglobal.com.. .
Just for clarification I have my sql view code for the queries.

query 1:
SELECT tblCodeJurisdiction.Jurisdiction, IIf(IsNull([SiteID]),0,[SiteID])
AS [This Site]
FROM tblCodeJurisdiction LEFT JOIN qrySubSiteJurisdiction ON
tblCodeJurisdiction.JurisdictionID =
qrySubSiteJurisdiction.JurisdictionID;

query 2: (qrySubSiteJurisdiction)
SELECT tblSiteJurisdiction.SiteID, tblSiteJurisdiction.JurisdictionID
FROM tblSiteJurisdiction
GROUP BY tblSiteJurisdiction.SiteID, tblSiteJurisdiction.JurisdictionID
HAVING (((tblSiteJurisdiction.SiteID)=[Forms]![Transaction
Info]![SiteID]));

Dec 17 '05 #3

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

Similar topics

8
by: Ralph Freshour | last post by:
I have multiple checkbox's created with an array name because I have many on the same web page - their names are like: frm_chk_delete frm_chk_delete frm_chk_delete frm_chk_delete etc. Here...
2
by: Georges Heinesch | last post by:
Hi: I have a tables in relationship to each other. When I open the main table (table 1), I see a "+" at the very left of every record. Clicking on the "+" expands the data of the linked table...
1
by: George Kandaz | last post by:
Steve, I posted a question to your last post almost a week ago, but never heard from you again. Please read my last message, as follows. Thanks. ...
20
by: PC Datasheet | last post by:
How can the label for a checkbox and the labels for the options in an option group be addressed? When a checkbox gets the focus, Access draws a dotted box around the label. When an option group...
42
by: (PeteCresswell) | last post by:
I skimmed the MS spiel at http://msdn.microsoft.com/sql/express, and noted the part about "all inside the Visual Studio 2005 environment". Do the older SQL server tools for security and stored...
5
by: Newbie | last post by:
I would like to display certain columns from a table on a form. One of my columns that I want to show is a Yes/No field so that my users can pick their players for a fantasy football week. If...
4
by: TechnoAtif | last post by:
Hi ALL I have entered some array values using checkboxes into mysql database through a form. Next iam creating a searchpage where all those cateogories inserted through checkboxes has to be...
2
by: Alan Forsyth | last post by:
That rather long subject says it. In Access97 running on XP - I want to display a Maximized size Form01, then open a Restore size Datasheet View Form02 on top of the first Form. PopUp won't give...
14
by: zufie | last post by:
I have to create a QA report regarding callers calling into a phone hotline. The report consists of many checkboxes such as: Did the IBCCP agency contact you? Yes/NO How many days passed...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...

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.