473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Distinct selection

Hi,

I have a form that bound to a query. The form shows the records in tabular view. But I wish to allow changes for some fields, hence I made those fields as combobox. The problem is if I change the value in row 1 (select the combobox of row1), all rows are being changed as well. How do I make each rows independent of other rows?
Mar 11 '08 #1
3 1629
Stewart Ross
2,545 Expert Mod 2GB
Hi,

I have a form that bound to a query. The form shows the records in tabular view. But I wish to allow changes for some fields, hence I made those fields as combobox. The problem is if I change the value in row 1 (select the combobox of row1), all rows are being changed as well. How do I make each rows independent of other rows?
Hi mashimaro. It sounds like the combo box is not bound to one of the underlying fields of the form (it should be bound to the one you replaced in putting it on the form). Tabular forms repeat the same set of controls, so if the values are not bound you get the same thing repeated on each row. If you used the Access wizard to build the combo it is easy to forget to assign the value to the right field, so this would be the first thing to check I think.

If the combo is unbound its control source property will be blank.

-Stewart
Mar 11 '08 #2
If the combo is bound, I couldn't change the value. So how could I allow changes to the combobox?
Mar 12 '08 #3
Stewart Ross
2,545 Expert Mod 2GB
If the combo is bound, I couldn't change the value. So how could I allow changes to the combobox?
Hi. A bound control is simply one whose control source is a field on the underlying query or table for your form. Changes made to bound controls cause changes to the underlying field of the table, as long as (1) the value entered is appropriate for that field, and (2) the control and the query or table are updatable.

The use of the combo box as such cannot itself cause an update issue, but returning a list value that does not match what the underlying field is set to take could do so.

You should check that your combo box is returning an appropriate value for the field to which it is bound as your first step. There are examples of the use of combo boxes in Microsoft's exemplar Northwind database which comes with Access.

-Stewart
Mar 12 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ben | last post by:
This is a PHP / MySQL kind of question. I am making a script which simply pulls information from a database and displays it on screen. BUT there will be entries where fields could be the same, and...
5
by: Martin Feuersteiner | last post by:
Dear Group I'm having trouble with the clause below. I would like to select only records with a distinct TransactionDate but somehow it still lists duplicates. I need to select the...
2
by: C L Humphreys | last post by:
Is there a way of specifying how select distinct works? In other words I don't want it to work on every column, just a selection of them. What I'm really looking for is ways of removing...
18
by: mathilda | last post by:
My boss has been adamant that SELECT DISTINCT is a faster query than SELECT all other factors being equal. I disagree. We are linking an Access front end to a SQL Server back end and normally are...
1
by: nfrodsham | last post by:
In Microsoft's help literature, it states: "You can filter out non-unique rows by using the DISTINCT option of an aggregate function" I am trying to do this in Access 2003 with the COUNT...
7
by: juli | last post by:
I have strings variables in a collection list and I want to create new collection but to add to it only strings that are distinct (no common strings). For example I have an object sentense which...
0
by: Jasper Jones | last post by:
I have a Crystal report that shows me a list of sales and which customer bought them, I would like to get a distinct list of customers, is this possible with crystal's formulas? This is my...
2
by: Techhead | last post by:
I need to run a SELECT DISTINCT query across multiple fields, but I need to add another field that is NON-DISTINCT to my record set. Here is my query: SELECT DISTINCT lastname, firstname,...
3
by: Mchine34 | last post by:
I have created an xslt that sorts the following xml on node: Path XSLT: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">...
1
by: bbcdancer | last post by:
1. MS ACCESS COMBO LIST = JAN;FEB;MAR;APR;MAY; ----------------------------------- 2. DATA TABLE: N1 | N2 | N3 | JAN | FEB | MAR | APR | MAY | -------------------------------------------- a1 |...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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...

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.