I have a continuous form based on a multi-table query.
Tables (joined fields) (other fields used by the query)
TrackingNumbers (OrderID) (TrackingNumber, FreightAmt, Paid)
Orders (OrderID, CustomerID, FreightID) (OrderDate)
Customer (CustomerID) (CustomerName, City)
Freight (FreightID) (FreightName)
Sorted by FreightName, OrderDate
Paid = 0
The form is to be used when I receive bills from various freight companies...
allowing me to verify charges and check them off when I pay them. The form
lists all orders with unpaid freight bills with this information:
FreightName-OrderID-OrderDate-CustomerName-City-TrackingNumber-FreightAmt-
Paid
Paid is a yes/no field in the TrackingNumbers table and is the control source
of a checkbox for each record on the form.
The query and the form list all of the unpaid orders with all of the
information. However, the checkbox cannot be checked. When clicked, it gets
focus, but does not update to a 'yes'.
I tried changing the query's joins to every possible combination with no luck,
and I double-checked that the data type matched for each linked field.
I can only get the checkboxes to cooperate if I simplify the query to one
table (TrackingNumbers), but I lose much of the information (FreightName,
OrderDate, CustomerName, City) from the form.
Any ideas of what I could have done wrong?
--
Message posted via http://www.accessmonster.com
|
|
0
|
|
|
|
Reply
|
milwhcky
|
3/10/2010 9:29:04 PM |
|
Hi -
You haven't really done anything wrong; the problem is that the query itself
is not updateable. Try using SELECT DISTINCTROW in the query SQL, end ensure
that all your joins are FK to PK, or to a field with a unique index. That
might make the query updateable.
John
milwhcky wrote:
>I have a continuous form based on a multi-table query.
>
>Tables (joined fields) (other fields used by the query)
>TrackingNumbers (OrderID) (TrackingNumber, FreightAmt, Paid)
>Orders (OrderID, CustomerID, FreightID) (OrderDate)
>Customer (CustomerID) (CustomerName, City)
>Freight (FreightID) (FreightName)
>Sorted by FreightName, OrderDate
>Paid = 0
>
>The form is to be used when I receive bills from various freight companies...
>allowing me to verify charges and check them off when I pay them. The form
>lists all orders with unpaid freight bills with this information:
>FreightName-OrderID-OrderDate-CustomerName-City-TrackingNumber-FreightAmt-
>Paid
>
>Paid is a yes/no field in the TrackingNumbers table and is the control source
>of a checkbox for each record on the form.
>
>The query and the form list all of the unpaid orders with all of the
>information. However, the checkbox cannot be checked. When clicked, it gets
>focus, but does not update to a 'yes'.
>
>I tried changing the query's joins to every possible combination with no luck,
>and I double-checked that the data type matched for each linked field.
>
>I can only get the checkboxes to cooperate if I simplify the query to one
>table (TrackingNumbers), but I lose much of the information (FreightName,
>OrderDate, CustomerName, City) from the form.
>
>Any ideas of what I could have done wrong?
--
John Goddard
Ottawa, ON Canada
jrgoddard at cyberus dot ca
Message posted via http://www.accessmonster.com
|
|
0
|
|
|
|
Reply
|
J_Goddard
|
3/10/2010 9:52:15 PM
|
|
Open the query in query design, not SQL. Right click in the area which has
the tables and select properties. Under Recordset Type, select Dynaset
(Inconsistent Updates).
Try this with caution... test to see what it does in your tables. This
field should be in the 'one' side of your 'one-to-many' query, otherwise it
will update multiple records on the 'many' side.
Mich
"milwhcky via AccessMonster.com" <u54692@uwe> wrote in message
news:a4d12e7bfafe1@uwe...
>I have a continuous form based on a multi-table query.
>
> Tables (joined fields) (other fields used by the query)
> TrackingNumbers (OrderID) (TrackingNumber, FreightAmt, Paid)
> Orders (OrderID, CustomerID, FreightID) (OrderDate)
> Customer (CustomerID) (CustomerName, City)
> Freight (FreightID) (FreightName)
> Sorted by FreightName, OrderDate
> Paid = 0
>
> The form is to be used when I receive bills from various freight
> companies...
> allowing me to verify charges and check them off when I pay them. The
> form
> lists all orders with unpaid freight bills with this information:
> FreightName-OrderID-OrderDate-CustomerName-City-TrackingNumber-FreightAmt-
> Paid
>
> Paid is a yes/no field in the TrackingNumbers table and is the control
> source
> of a checkbox for each record on the form.
>
> The query and the form list all of the unpaid orders with all of the
> information. However, the checkbox cannot be checked. When clicked, it
> gets
> focus, but does not update to a 'yes'.
>
> I tried changing the query's joins to every possible combination with no
> luck,
> and I double-checked that the data type matched for each linked field.
>
> I can only get the checkboxes to cooperate if I simplify the query to one
> table (TrackingNumbers), but I lose much of the information (FreightName,
> OrderDate, CustomerName, City) from the form.
>
> Any ideas of what I could have done wrong?
>
> --
> Message posted via http://www.accessmonster.com
>
|
|
0
|
|
|
|
Reply
|
M
|
3/10/2010 10:02:31 PM
|
|
Using DISTINCT is one of the things that causes the problem, according to
Allen Browne, who is almost always right!
Also, setting the Recordset Type to Dynaset (Inconsistent Updates) won't make
a difference if the underlying Record Source is read-only.
Allen gives a very good explanation of the various things that can cause this
problem as well as, I believe, some workarounds.
http://allenbrowne.com/ser-61.html
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/201003/1
|
|
0
|
|
|
|
Reply
|
Linq
|
3/10/2010 10:52:06 PM
|
|
> Also, setting the Recordset Type to Dynaset (Inconsistent Updates) won't
> make
> a difference if the underlying Record Source is read-only.
This usually changes it out of the Read Only status. I use it frequently in
JOIN queries on forms and subforms.
There was no mention of DISTINCT in the original post, nor did I refer to
it.
I just offered a solution that has worked for me, withour criticising other
posts.
I have referenced Allen Browne's website frequently for my own programming
questions.
"Linq Adams via AccessMonster.com" <u28780@uwe> wrote in message
news:a4d1e83acdeb0@uwe...
> Using DISTINCT is one of the things that causes the problem, according to
> Allen Browne, who is almost always right!
>
> Also, setting the Recordset Type to Dynaset (Inconsistent Updates) won't
> make
> a difference if the underlying Record Source is read-only.
>
> Allen gives a very good explanation of the various things that can cause
> this
> problem as well as, I believe, some workarounds.
>
> http://allenbrowne.com/ser-61.html
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/201003/1
>
|
|
0
|
|
|
|
Reply
|
M
|
3/11/2010 1:57:57 PM
|
|
Sorry I couldn't reply sooner, but I've been away from my desk...
My select query did not use DISTINCT or DISTINCTROW. Neither changing the
query to SELECT DISTINCTROW, nor changing the query's Recordset type to
Dynaset (Inconsistent Updates) led to a positive result.
Something did come to mind which may help someone steer me in the right
direction...
On my TrackingNumbers table, OrderID is one of two fields which make up the
primary key. The second field is LineNumber (autonumber), which is used
because many invoices have more than one tracking number. Therefore, the
same OrderID is listed more than once on the TrackingNumbers table. On the
Orders table, OrderID is the lone primary key field.
This was my first project using a table with a PK of more than one field, so
I wonder if this is the source of my hiccup.
Thanks to everyone who has attempted to help!
J_Goddard wrote:
>Hi -
>
>You haven't really done anything wrong; the problem is that the query itself
>is not updateable. Try using SELECT DISTINCTROW in the query SQL, end ensure
>that all your joins are FK to PK, or to a field with a unique index. That
>might make the query updateable.
>
>John
>
>>I have a continuous form based on a multi-table query.
>>
>[quoted text clipped - 27 lines]
>>
>>Any ideas of what I could have done wrong?
>
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/201003/1
|
|
0
|
|
|
|
Reply
|
milwhcky
|
3/11/2010 8:27:38 PM
|
|
|
5 Replies
496 Views
(page loaded in 0.254 seconds)
Similiar Articles: Checkbox will not check - microsoft.public.access.forms ...I have a continuous form based on a multi-table query. Tables (joined fields) (other fields used by the query) TrackingNumbers (OrderID) (Tracki... Checkboxes Not Working on Form - microsoft.public.access.forms ...Okay, I know this is very basic, but I can't figure it out! I have a form with a tab control. On one of the tabs I have 8-10 unbound checkboxes tha... Checkbox not staying checked - microsoft.public.accessI have been searching and searching, but I am able to find the answer I need. I created a checkbox in Access and when I go back to the form view I can check the box ... Loop through checkboxes - microsoft.public.accessLoop through checkboxes Hi, I=92m attempting to loop through a series of checkboxes (not part of option group) to see if ANY has been checked (a user can check 1 ... I can't get a checkbox to work with a yes/no field ...Checkbox will not check - microsoft.public.access.forms ..... FreightAmt- Paid Paid is a yes/no field in the ... produce results in my query to insert a checkbox the can ... TRUE/ FALSE in check boxes do not toggle - microsoft.public.excel ...I created a form in Excel 2007 that uses calculations. The calculations in the form work great on my home computer (WINDOWS 7, Excel 2007), BUT the... Mutually exclusive checkboxes - microsoft.public.word.newusers ...How do you make checkboxes in a WORD form mutually exclusive? I do NOT work in code. Can this be done using the standard "Developer" functions provi... Table/Form Checkbox - microsoft.public.accessIs there a way I can have a checkbox on a form that saves in a table and versa?Example ... These fields will appear in the data table view as check boxes. When you create ... how to export the value of checkbox on a report in to excel ...I have used check box datatype in my database, also created a report, it is all looking fine, but when i export the report in to excel or word or html, the checkbox ... CheckBox for data criteria - microsoft.public.access.queries ...I have table with data for last few years and opening is terribly slow. I want to display data for only one month, or if user want to view all data must check ... Working with Checkboxes in the WPF TreeView - CodeProjectExamines how to create a tree of checkboxes that intelligently update their own check state and are easy to navigate with the keyboard; Author: Josh Smith; Updated: 1 ... CheckBox Object - Microsoft Corporation: Software, Smartphones ...Represents a single check box form field. Using the CheckBox Object. Use FormFields(index), where index is index number or the bookmark name associated with the check ... Making One Checkbox Check Other CheckboxesMaking One Checkbox Check Other Checkboxes by Dian Chapman, MVP, MOS: Today someone (Matt from Georgia) emailed me with a Word form question. Although I also directed ... DataGridView Checkbox Column Will Not CheckI have a Visual C# 2005 windows application program to which I have added a datagrid view that is data bound to a database. I have added an unbound ... Controlling Checkboxes with JavaScript - Web Site Development ...Sometimes it's desirable to control whether or not certain checkboxes are checked, or to do something depending on which ones are checked. 7/25/2012 9:06:56 AM
|