Hi good people of the Access world,
I have a two tables, i have a form, the forms recordsource is a 'union query', however this does not seem to allow me to update the table via the form, does anyone have any ideas....??? is this something that happens when you use union queries....??
Cheers....
6 6555
Sorry, Union queries are always read-only!
Welcome to TheScripts!
Linq ;0)>
Thanks for the reply... is there anyway around this, at all...??
Thanks for the reply... is there anyway around this, at all...??
You can use your union query as part of a separate select query that chooses the records that need to be updateable. Base your form on this second (non-union) query.
Regards,
Scott
You can use your union query as part of a separate select query that chooses the records that need to be updateable. Base your form on this second (non-union) query.
Regards,
Scott
Sorry, Scott, but any query based on not updatable query will be not updatable itself.
Thanks for the reply... is there anyway around this, at all...??
The only way around, I think, is to merge tables physically.
There is now reason to store data in separate tables to distinguish London from Bristol. Just add to both'em field (let us say txtCity (Type=Text)), update it in tbl_london to "London" and in tbl_bristol to "Bristol", then merge both'em.
Now to normalize your db you'll need to create additional table (let us say tblCities) with single field (txtCity (Type=Text)) which will be the Primary Key, add two records "London" and "Bristol" and then make PK/FK relationship between tblCities and the merged table (tblCities.txtCity - PK, tbl_mergedtable.txtCity - FK).
Sorry, Scott, but any query based on not updatable query will be not updatable itself.
Good catch, FishVal... I guess I've never tried to use a union query for anything but data display.
Regards,
Scott
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Eugene |
last post by:
Summary:
----------
Updates against UNION ALL view does't do branch elimination, but
rather reads all the branches (partitions).
The case scenario(DB2 V8.1.4a ESE, AIX 5.2):...
|
by: Enterprise |
last post by:
Hi,
Here is my code for the Union query "Table
union Table union Table ;"
The tables are actually queries themselves.
I made a form for the query, but when I try to update the...
|
by: mattytee123 |
last post by:
I have about 20 tables, of which I would like to do a union query and
count of how many of each different code there is?
The simplified verson of the table is structured like this.
Code ...
|
by: spam |
last post by:
If I run the following query in Access 2002 then I get the expected
result:
SELECT *
FROM CSVImport
UNION SELECT *
FROM AssetTemp;
I get the contents of both tables with no duplicates. If I...
|
by: Thomas |
last post by:
Hi All. I think that if I explain the database layout first it may be
easier to ask my question.
Table Name Field Name
Test TestCode
Description
SpecimenRequirements
FeeSchedule TestCode...
|
by: Chips |
last post by:
Hi, I am trying to create a form which displays fuel uplifts for different flights, they are then reconciled against invoices and therefore need to be updated (invoice numbers added).
All flights...
|
by: kepston |
last post by:
I have a situation where I need to record scrap quantities for parts that we sell and parts that are supplied, in a single table. I have a UNION query that combines the part numbers successfully,...
|
by: cashotte |
last post by:
Hi,
Is there a way to have a union query (2 tables) in an other query then
join a third table having the ability to edit records in the third
table?
Thanks,
Stephane
|
by: tuxalot |
last post by:
I have a listbox with a row source using a union query:
SELECT .ReportID, .ReportName, .ReportCaption, .ReportCriteriaFlags, .ReportRemote FROM ORDER BY .ReportCaption;
The union query sql:
TABLE...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |