473,385 Members | 1,817 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,385 software developers and data experts.

Can't update a recordset after filtering

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 that represents the final
results for the year. The table into which I wish to save it has 10
records, the past 10 years results. The problem is that I select the
calendar year from an unbound combo box and it runs a filter that restricts
the records to only that year in an after update event. At that stage, I
have code that will copy the values of each subform into text boxes which
are bound to my table. The theory works if I don't filter the recordsource
query (me.recordsource = "restricting query"), but as soon as I do, the
record source is not updateable and I can't save anything. How do I get
around it?

dixie
Nov 12 '05 #1
3 3841
dixie wrote:
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 that represents the final
results for the year. The table into which I wish to save it has 10
records, the past 10 years results. The problem is that I select the
calendar year from an unbound combo box and it runs a filter that restricts
the records to only that year in an after update event. At that stage, I
have code that will copy the values of each subform into text boxes which
are bound to my table. The theory works if I don't filter the recordsource
query (me.recordsource = "restricting query"), but as soon as I do, the
record source is not updateable and I can't save anything. How do I get
around it?

dixie


Are you sure the recordset is really updateable? Create a query with the filter
for that year with all of the Where criteria.. Open the query. One of those
"criterias: is stopping you from updating the record. Remove them one at a time
till you find out which one. Then fix or adjust.

You may have to Dim a recordset, update the record, then requery if worst comes
to worse.

Nov 12 '05 #2
The query is just on the one table with one criteria which is the calendar
year which is taken from the combo box control. Apart from changing the
recordsource to the filtered on year query, the after update even from the
combo box requeries the form so that all of the subforms can run and get
their data. This is really weird as I can see nothing wrong with any of it,
yet, the error message "This recordset is not updateable" comes up when I
try to copy the results of the subforms to bound text boxes.

dixie

"Salad" <hi**********@ranch.com> wrote in message
news:3F***************@ranch.com...
dixie wrote:
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 that represents the final results for the year. The table into which I wish to save it has 10
records, the past 10 years results. The problem is that I select the
calendar year from an unbound combo box and it runs a filter that restricts the records to only that year in an after update event. At that stage, I have code that will copy the values of each subform into text boxes which are bound to my table. The theory works if I don't filter the recordsource query (me.recordsource = "restricting query"), but as soon as I do, the
record source is not updateable and I can't save anything. How do I get
around it?

dixie
Are you sure the recordset is really updateable? Create a query with the

filter for that year with all of the Where criteria.. Open the query. One of those "criterias: is stopping you from updating the record. Remove them one at a time till you find out which one. Then fix or adjust.

You may have to Dim a recordset, update the record, then requery if worst comes to worse.

Nov 12 '05 #3
Its OK, I have found the problem. Thanks for your help.

dixie

"Salad" <hi**********@ranch.com> wrote in message
news:3F***************@ranch.com...
dixie wrote:
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 that represents the final results for the year. The table into which I wish to save it has 10
records, the past 10 years results. The problem is that I select the
calendar year from an unbound combo box and it runs a filter that restricts the records to only that year in an after update event. At that stage, I have code that will copy the values of each subform into text boxes which are bound to my table. The theory works if I don't filter the recordsource query (me.recordsource = "restricting query"), but as soon as I do, the
record source is not updateable and I can't save anything. How do I get
around it?

dixie
Are you sure the recordset is really updateable? Create a query with the

filter for that year with all of the Where criteria.. Open the query. One of those "criterias: is stopping you from updating the record. Remove them one at a time till you find out which one. Then fix or adjust.

You may have to Dim a recordset, update the record, then requery if worst comes to worse.

Nov 12 '05 #4

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

Similar topics

1
by: Just_Buy | last post by:
Environment: MS Access 97 Problem: Trying to force a record to update using the recordset.Update property. What syntax do I need to force a record to be updated? I have searched the...
5
by: tony010409020622 | last post by:
I just spent 4 months taking a dotnet class where i learned very little. One of the things I did not learn is this: What are the dotnet equivilents of commands such as: Adodc1.Recordset.AddNew...
9
by: zMisc | last post by:
When I try to update record, I kept getting this error: Row cannot be located for updating. Some values may have been changed since it was last read. No other users are accessing the database...
3
by: jpr | last post by:
Hello, I know that this is not the rule but need some help. My datbase has three tables: MASTER TEMPLATES FORMS I have a form which is based on a table named MASTER. I have a primary key...
8
by: Radu | last post by:
Hi, I have the following problem: I open a recordset based on excel/csv files, but then I need to filter (in code) in order to extract only data pertaining to a specific person. This code is...
2
by: devine | last post by:
Hi All, I am trying to send an automatic email when an update has been made. My update statement will updates 6 fields, and dependant on one of the fields, I would like to send an email using CDO....
52
by: MP | last post by:
Hi trying to begin to learn database using vb6, ado/adox, mdb format, sql (not using access...just mdb format via ado) i need to group the values of multiple fields - get their possible...
1
by: Dilruba | last post by:
Currently i am giving input ( as offline ) to access database locally. After the i upload the whole database. But i want to give the as online i.e. i want to give the input to the database from a...
4
by: phill86 | last post by:
Hi, i have a form that runs a query in a recordset on the after update method if i copy and paste one record at a time the query picks up the records in the underlying table but if i paste...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
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...
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: 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$) { } ...
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...
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...

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.