![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have the following query, that has been in use for 3 years that extracts GL positing from a Jet/Access97 table that has existed for 10 years. For some reason the query quit returning records. SELECT tblGLPost.* FROM tblGLPost WHERE (((tblGLPost.Comment) Like "INV*ENTER") AND ((tblGLPost.Tag)="0014266")); tblGLPost.Comment is an indexed 30 character text field, duplicates allowed tblGLPost.Tag is an indexed 15 character text field, duplicates allowed The Tag criteria is added with each run of the query. Removing the "Tag" criteria, returns records. Replacing "INV*ENTER" with "INV*", returns records. During testing I created and run the query from the BE file. I did a Compact and Repair on the Backend MDB. I Created a new MDB and imported the tables from the old. I created a new table and copied with a append query the records from the old. After reducing the number of records in tblGLPost, the original query works. The table had over 900,000 records, I archived a few years and it now has 569,826 records. Has anyone seen this in Access? Have I missed something else to try? This is from A97 help because it's easy for me to find (topic |
#3
| |||
| |||
|
|
paii, Ron wrote: I have the following query, that has been in use for 3 years that extracts GL positing from a Jet/Access97 table that has existed for 10 years. For some reason the query quit returning records. SELECT tblGLPost.* FROM tblGLPost WHERE (((tblGLPost.Comment) Like "INV*ENTER") AND ((tblGLPost.Tag)="0014266")); tblGLPost.Comment is an indexed 30 character text field, duplicates allowed tblGLPost.Tag is an indexed 15 character text field, duplicates allowed The Tag criteria is added with each run of the query. Removing the "Tag" criteria, returns records. Replacing "INV*ENTER" with "INV*", returns records. During testing I created and run the query from the BE file. I did a Compact and Repair on the Backend MDB. I Created a new MDB and imported the tables from the old. I created a new table and copied with a append query the records from the old. After reducing the number of records in tblGLPost, the original query works. The table had over 900,000 records, I archived a few years and it now has 569,826 records. Has anyone seen this in Access? Have I missed something else to try? This is from A97 help because it's easy for me to find (topic Specifications). The following are the limits for Database, Table, and Query. The size, I'll assume, grew in future versions but then you have to take into consideration Unicode. With 900K records, even if the size has increased sin A97, it's possible you hit a limit. Database (.mdb) file size 1 gigabyte. However, because your database can include linked tables in other files, its total size is limited only by available storage capacity. Table: Table size 1 gigabyte Query: Recordset size 1 gigabyte |
#4
| |||
| |||
|
|
"Salad" <salad (AT) oilandvinegar (DOT) com> wrote in message news:IbidncWLgeTCU7LWnZ2dnUVZ_jqdnZ2d (AT) earthlink (DOT) com... paii, Ron wrote: I have the following query, that has been in use for 3 years that extracts GL positing from a Jet/Access97 table that has existed for 10 years. For some reason the query quit returning records. SELECT tblGLPost.* FROM tblGLPost WHERE (((tblGLPost.Comment) Like "INV*ENTER") AND ((tblGLPost.Tag)="0014266")); tblGLPost.Comment is an indexed 30 character text field, duplicates allowed tblGLPost.Tag is an indexed 15 character text field, duplicates allowed The Tag criteria is added with each run of the query. Removing the "Tag" criteria, returns records. Replacing "INV*ENTER" with "INV*", returns records. During testing I created and run the query from the BE file. I did a Compact and Repair on the Backend MDB. I Created a new MDB and imported the tables from the old. I created a new table and copied with a append query the records from the old. After reducing the number of records in tblGLPost, the original query works. The table had over 900,000 records, I archived a few years and it now has 569,826 records. Has anyone seen this in Access? Have I missed something else to try? This is from A97 help because it's easy for me to find (topic Specifications). The following are the limits for Database, Table, and Query. The size, I'll assume, grew in future versions but then you have to take into consideration Unicode. With 900K records, even if the size has increased sin A97, it's possible you hit a limit. Database (.mdb) file size 1 gigabyte. However, because your database can include linked tables in other files, its total size is limited only by available storage capacity. Table: Table size 1 gigabyte Query: Recordset size 1 gigabyte The file size of the BE MDB file containing this table is 88,852 KB as reported by Windows. It appears you have plenty of room to grow. Who knows, maybe there was |
#5
| |||
| |||
|
|
I have the following query, that has been in use for 3 years that extracts GL positing from a Jet/Access97 table that has existed for 10 years. For some reason the query quit returning records. SELECT tblGLPost.* FROM tblGLPost WHERE (((tblGLPost.Comment) Like "INV*ENTER") AND ((tblGLPost.Tag)="0014266")); tblGLPost.Comment is an indexed 30 character text field, duplicates allowed tblGLPost.Tag is an indexed 15 character text field, duplicates allowed The Tag criteria is added with each run of the query. Removing the "Tag" criteria, returns records. Replacing "INV*ENTER" with "INV*", returns records. During testing I created and run the query from the BE file. I did a Compact and Repair on the Backend MDB. I Created a new MDB and imported the tables from the old. I created a new table and copied with a append query the records from the old. After reducing the number of records in tblGLPost, the original query works. The table had over 900,000 records, I archived a few years and it now has 569,826 records. Has anyone seen this in Access? Have I missed something else to try? |
#6
| |||
| |||
|
|
paii, Ron wrote: "Salad" <salad (AT) oilandvinegar (DOT) com> wrote in message news:IbidncWLgeTCU7LWnZ2dnUVZ_jqdnZ2d (AT) earthlink (DOT) com... paii, Ron wrote: I have the following query, that has been in use for 3 years that extracts GL positing from a Jet/Access97 table that has existed for 10 years. For some reason the query quit returning records. SELECT tblGLPost.* FROM tblGLPost WHERE (((tblGLPost.Comment) Like "INV*ENTER") AND ((tblGLPost.Tag)="0014266")); tblGLPost.Comment is an indexed 30 character text field, duplicates allowed tblGLPost.Tag is an indexed 15 character text field, duplicates allowed The Tag criteria is added with each run of the query. Removing the "Tag" criteria, returns records. Replacing "INV*ENTER" with "INV*", returns records. During testing I created and run the query from the BE file. I did a Compact and Repair on the Backend MDB. I Created a new MDB and imported the tables from the old. I created a new table and copied with a append query the records from the old. After reducing the number of records in tblGLPost, the original query works. The table had over 900,000 records, I archived a few years and it now has 569,826 records. Has anyone seen this in Access? Have I missed something else to try? This is from A97 help because it's easy for me to find (topic Specifications). The following are the limits for Database, Table, and Query. The size, I'll assume, grew in future versions but then you have to take into consideration Unicode. With 900K records, even if the size has increased sin A97, it's possible you hit a limit. Database (.mdb) file size 1 gigabyte. However, because your database can include linked tables in other files, its total size is limited only by available storage capacity. Table: Table size 1 gigabyte Query: Recordset size 1 gigabyte The file size of the BE MDB file containing this table is 88,852 KB as reported by Windows. It appears you have plenty of room to grow. Who knows, maybe there was a #Error in one of those fields. It would have been hard to track down if there was one. I don't believe a compact/repair would remove/fix a corrupt value. Did you keep a backup prior to archiving/removing records. If so, what happened if you removed the filter. Then put in the first part of the filter (((tblGLPost.Comment) Like "INV*ENTER"). Then again on the 2nd part of the filter ((tblGLPost.Tag)="0014266")). If it worked for no filter and for one of the filters but not the other then there could have been a corrupt record...but that's just guessing. |
#7
| |||
| |||
|
|
"Salad" <salad (AT) oilandvinegar (DOT) com> wrote in message news:cuadnXBuUYU-SrLWnZ2dnUVZ_sOdnZ2d (AT) earthlink (DOT) com... paii, Ron wrote: "Salad" <salad (AT) oilandvinegar (DOT) com> wrote in message news:IbidncWLgeTCU7LWnZ2dnUVZ_jqdnZ2d (AT) earthlink (DOT) com... paii, Ron wrote: I have the following query, that has been in use for 3 years that extracts GL positing from a Jet/Access97 table that has existed for 10 years. For some reason the query quit returning records. SELECT tblGLPost.* FROM tblGLPost WHERE (((tblGLPost.Comment) Like "INV*ENTER") AND ((tblGLPost.Tag)="0014266")); tblGLPost.Comment is an indexed 30 character text field, duplicates allowed tblGLPost.Tag is an indexed 15 character text field, duplicates allowed The Tag criteria is added with each run of the query. Removing the "Tag" criteria, returns records. Replacing "INV*ENTER" with "INV*", returns records. During testing I created and run the query from the BE file. I did a Compact and Repair on the Backend MDB. I Created a new MDB and imported the tables from the old. I created a new table and copied with a append query the records from the old. After reducing the number of records in tblGLPost, the original query works. The table had over 900,000 records, I archived a few years and it now has 569,826 records. Has anyone seen this in Access? Have I missed something else to try? This is from A97 help because it's easy for me to find (topic Specifications). The following are the limits for Database, Table, and Query. The size, I'll assume, grew in future versions but then you have to take into consideration Unicode. With 900K records, even if the size has increased sin A97, it's possible you hit a limit. Database (.mdb) file size 1 gigabyte. However, because your database can include linked tables in other files, its total size is limited only by available storage capacity. Table: Table size 1 gigabyte Query: Recordset size 1 gigabyte The file size of the BE MDB file containing this table is 88,852 KB as reported by Windows. It appears you have plenty of room to grow. Who knows, maybe there was a #Error in one of those fields. It would have been hard to track down if there was one. I don't believe a compact/repair would remove/fix a corrupt value. Did you keep a backup prior to archiving/removing records. If so, what happened if you removed the filter. Then put in the first part of the filter (((tblGLPost.Comment) Like "INV*ENTER"). Then again on the 2nd part of the filter ((tblGLPost.Tag)="0014266")). If it worked for no filter and for one of the filters but not the other then there could have been a corrupt record...but that's just guessing. Thank you for you reply The query works if remove the ((tblGLPost.Tag)="0014266")) part or if I change the comment filter to (((tblGLPost.Comment) Like "INV*"). It looks like having the "*" wildcard in the middle cause the problem. Using (((tblGLPost.Comment) Like "INV*ENTER*" AND ((tblGLPost.Tag)="0014266"))) does not work. Who knows. Maybe a recent Windows update caused some glitch. |
#8
| |||
| |||
|
|
I have the following query, that has been in use for 3 years that extracts GL positing from a Jet/Access97 table that has existed for 10 years. For some reason the query quit returning records. SELECT tblGLPost.* FROM tblGLPost WHERE (((tblGLPost.Comment) Like "INV*ENTER") AND ((tblGLPost.Tag)="0014266")); tblGLPost.Comment is an indexed 30 character text field, duplicates allowed tblGLPost.Tag is an indexed 15 character text field, duplicates allowed The Tag criteria is added with each run of the query. Removing the "Tag" criteria, returns records. Replacing "INV*ENTER" with "INV*", returns records. During testing I created and run the query from the BE file. I did a Compact and Repair on the Backend MDB. I Created a new MDB and imported the tables from the old. I created a new table and copied with a append query the records from the old. After reducing the number of records in tblGLPost, the original query works. The table had over 900,000 records, I archived a few years and it now has 569,826 records. Has anyone seen this in Access? Have I missed something else to try? what happens if you delete the 2 indexes, does your query work (albeit slowly) what happens if you then recreate the indexes, does the query still work ? |
#9
| |||
| |||
|
|
tblGLPost.Comment is an indexed 30 character text field, duplicates allowed tblGLPost.Tag is an indexed 15 character text field, duplicates allowed |
#10
| |||
| |||
|
|
"Roger" <lesperancer (AT) natpro (DOT) com> wrote in message news:7b7ea22e-e118-405f-bf46-c62c674de641 (AT) p19g2000vbq (DOT) googlegroups.com... On Dec 21, 12:07 pm, "paii, Ron" <n... (AT) no (DOT) com> wrote: I have the following query, that has been in use for 3 years that extracts GL positing from a Jet/Access97 table that has existed for 10 years. For some reason the query quit returning records. SELECT tblGLPost.* FROM tblGLPost WHERE (((tblGLPost.Comment) Like "INV*ENTER") AND ((tblGLPost.Tag)="0014266")); tblGLPost.Comment is an indexed 30 character text field, duplicates allowed tblGLPost.Tag is an indexed 15 character text field, duplicates allowed The Tag criteria is added with each run of the query. Removing the "Tag" criteria, returns records. Replacing "INV*ENTER" with "INV*", returns records. During testing I created and run the query from the BE file. I did a Compact and Repair on the Backend MDB. I Created a new MDB and imported the tables from the old. I created a new table and copied with a append query the records from the old. After reducing the number of records in tblGLPost, the original query works. The table had over 900,000 records, I archived a few years and it now has 569,826 records. Has anyone seen this in Access? Have I missed something else to try? what happens if you delete the 2 indexes, does your query work (albeit slowly) what happens if you then recreate the indexes, does the query still work ? I deleted all indexes on tblGLPost and the query did not work. I then recreated the indexes and the query did not work. I duplicated the table structure then copied all the records using a append query to the new table. The query on the new table also did not work. |
![]() |
| Thread Tools | |
| Display Modes | |
| |