473,468 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Recordset is not updateable

42 New Member
Hi guys

I have a little problem

i have a small database with 2 formrs

First form displays all the records and i also have a search button which allow the user to search for a specific record .
When the search buton is clicked then a macro runs wich consists of running the query and displaying the second form with the records found .
The only problem i have is that when the records are displayed i CAN''T modify the fields .
On the macro sttings there is an option when the form is opened to be ( edit mode, addmode , read only mode) and it is set to edit mode but still doesn't allow to modify the fields.

Thanks
May 19 '09 #1
7 3211
NeoPa
32,556 Recognized Expert Moderator MVP
Check out the query that the form is bound to. You'll probably find that too, is not updatable.

Reasons for a Query to be Non-Updatable.
May 19 '09 #2
onyris
42 New Member
Thnks for the Link .

I didn't know that if i'm using a union query , then the records are not updateable.

Is there any way around this to make it updateable.

All i'm doing is basically to allow the user to serach for different fields on the same search , if u understand me . ( like i have one textbox to serach for and i want to be able to serach by first name , by city ..etc) .

thanks
May 19 '09 #3
NeoPa
32,556 Recognized Expert Moderator MVP
@onyris
It?

What does this refer to? You haven't posted any SQL for a query.
May 19 '09 #4
onyris
42 New Member
Sorry i forgot to put the query

this is the query i'am using at the moment

Expand|Select|Wrap|Line Numbers
  1. SELECT *
  2. FROM [names]
  3. WHERE (((names.fisrt_name) Like "*" & [forms]![names_form]![txtname] & "*"));
  4. UNION SELECT *
  5. FROM [names]
  6. WHERE (((names.cemetery) Like "*" & [forms]![names_form]![txtname] & "*"));
when i run the query , it returns the record set that i want , but i can display it on the form , but i can't modify it . .
May 19 '09 #5
NeoPa
32,556 Recognized Expert Moderator MVP
Ah, that makes more sense now.

You need just a little work on the WHERE clause instead :
Expand|Select|Wrap|Line Numbers
  1. SELECT * 
  2.  
  3. FROM [Names] 
  4.  
  5. WHERE ([First_Name] Like '*' & [Forms]![Names_Form]![txtName] & '*') 
  6.    OR ([Cemetery] Like '*' & [Forms]![Names_Form]![txtName] & '*')
NB. I re-spelled your field name which was mis-spelled.
May 19 '09 #6
onyris
42 New Member
Thanks a lot , is working now and i can edit the fields .

Thanks again!!
May 19 '09 #7
NeoPa
32,556 Recognized Expert Moderator MVP
You're welcome & I'm very pleased to hear it :)
May 20 '09 #8

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

Similar topics

7
by: ren | last post by:
Hello, When I open with Access 2000 a .DBF table and try to modify the content of a (random) record, I get the message 'This recordset is not updateable". And indeed, I can't change the content...
3
by: dixie | last post by:
I have a form full of subforms which bring summary information onto the form from about 12 different tables. I am trying to get all of that summary information (mainly numbers) into 1 large table...
3
by: jm | last post by:
I have a simple query. It has two tables. If I open the tables separately, I can add records. If I open them up together, the recordset is not updateable. As best I know, this has never been a...
4
by: MNC | last post by:
I'm using Access2002, and can't seem to get an updateable recordset going :-( What am I doing wrong, here's the code. The form's controls are not locked, the recordset type is Dynaset (changing...
1
by: Edward | last post by:
I've recently migrated the back end of one of my client's applications from Access to SQL Server. One of the forms is based on an Access query thus: SELECT dbo_tblDistributionDetail.*,...
2
by: MGFoster | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I want the recordset (rs) in the following function to be updateable. How do I do it? Even though the code is VBA I will be translating to VBS...
3
by: dd_bdlm | last post by:
Please help this one is driving me mad! I have searched and read all the topics on the error message I am receiving but none seem to apply to me! I have quite a complex query linking all parts...
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
3
by: Sim Zacks | last post by:
I have a postgresql backend with an access front end and I am trying to redefine the recordset of the form to use an ADO recordset. The problem is that the CursorType always changes to...
2
by: jghouse | last post by:
Everyone, Hopefully you can help me with a little problem I am having. I have a need to limit the records shown in a form by a few different criteria. I also need these records to be editable....
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
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.