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

MS Access 2003 linked table to .DBF file not being refreshed??

Hello all!
I'm experiencing a frustrating problem. I have an older MDB application which has linked tables to dbf files. Those linked tables appear to be retaining old data if accessed in a qry, but will display the correct data if opened explicitly. I don't know enough about MS Access to know how to automatically 'refresh' the index for these tables, but I believe that's the problem, because after I build a *new* table over those same old dbf files, choosing to replace the inf file, my qrys will work.
What am I overlooking?
Thanks!
RY
Oct 13 '10 #1
5 2398
MMcCarthy
14,534 Expert Mod 8TB
Have you run the linked table manager to refresh the links?

Mary
Oct 13 '10 #2
Mary,
Yes, I have refreshed them from the linked table manager...sorry, I neglected to mention that.
Well, let's say that I selected all of the linked tables and clicked 'OK' and waited for an appropriate period of time. I'm confident I had exclusive use of the MDB at the time, but probably did not have exclusive use of the DBFs that the tables are linked to. I assume Access would let me know if he wasn't able to refresh at that point?
Oct 13 '10 #3
MMcCarthy
14,534 Expert Mod 8TB
Can you post a sample query just to see if there is something there.
Oct 13 '10 #4
Mary,
Sorry, but I'm a noob here...I may not have the proper format for displaying code, but here it is:

Expand|Select|Wrap|Line Numbers
  1. SELECT inv.LOCATION, inv.VENDITEM, [GDI inv].ITEM, IIf(IsNull([102ware].[min]),IIf([loc2]<[gdi inv]![min],[gdi inv]![max]-[loc2],0),IIf([loc2]<[102ware].[min],[102ware].[max]-[loc1],0)) AS amt, inv.DESC, inv.ONHAND, [GDI warehous].LOC2 AS store, inv.UNIT
  2. FROM (inv INNER JOIN ([GDI inv] INNER JOIN [GDI warehous] ON [GDI inv].ITEM = [GDI warehous].ITEM) ON inv.ITEM = [GDI inv].VENDITEM) LEFT JOIN 102ware ON [GDI inv].ITEM = [102ware].ITEM
  3. WHERE (((IIf(IsNull([102ware].[min]),IIf([loc2]<[gdi inv]![min],[gdi inv]![max]-[loc2],0),IIf([loc2]<[102ware].[min],[102ware].[max]-[loc1],0)))>0) AND ((inv.ONHAND)>0) AND (([GDI inv].ONHAND)<1));
  4.  
This is a selection query for an inventory re-order report. It, and many other queries in this five-year-old MDB, has worked well for all that time, so I'm confident of the logic and I'm confident of the contents of the DBFs and the associated Linked Tables, but when the query ran early yesterday (before I forcibly refreshed the index by creating a new linked table), it returned incorrect data...as in generating twenty pages of items which I clearly had onhand. My first attempt to correct it was to select all tables from the Linked Table Manager and refresh them, which took an appropriate time (I felt) for twenty tables with 75K records. That didn't correct the problem. Then I selected only the tables in use from the LTM and refreshed them...still didn't work. THEN I got the idea to add some new linked tables just for the sake of replacing the associated INF files (That *is* what it does, right?)...and then it worked.
SO...the problem is corrected, but I'm not sure what caused the problem...and that's what I want to avoid.
Any thoughts?
RY
Oct 13 '10 #5
MMcCarthy
14,534 Expert Mod 8TB
The query looks fine. The only thing I can assume is that it has something to do with the way the tables were originally linked. Creating new links is probably the safest way to go.

Mary
Oct 13 '10 #6

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

Similar topics

4
by: Brian Andrus | last post by:
Ok. I upgraded to MS Access 2003 recently and now I am having great heartache. In Access 2002, when I opened a table to view the data, there were wonderful little "plus" signs that I could click...
2
by: Bruce | last post by:
Greetings! After finally figuring out that the Linked Table manager is no longer an add-in in Access 2003 I now discover that it does not display any of my linked tables in the 'select linked...
24
by: Bob Alston | last post by:
Anyone know a way to make all access to a linked table, in another Access MDB, read only? I really don't want all the hassle of implementing full access security. I can't do this at the server...
8
by: Jerome Ranch | last post by:
Okay So I've got pivot tables setup in Access 2003. Only about 30K records in the current 2005 databases...the pivots summarize the info in a number of nice ways. I need to get the pivot tables...
4
by: christianlott1 | last post by:
I've linked an excel worksheet as an access table. The values appear but it won't allow me to change any of the values. To test I've provided a fresh blank workbook and same problem. I've done...
2
by: nospam | last post by:
Hello, I am using Access 2000 and SQLServer 2000. I have 2 tables - one in Access and one in SS. They are identical in structure. I want to copy the Access or local table ( table_local) to...
2
nico5038
by: nico5038 | last post by:
Access 2007 Linkedtable manager refuses to relink tables having a field with the "Attachment" datatype. Problem: When placing a split database in another folder, the Linked table manager should...
0
by: f18jetpilot | last post by:
Does anyone know how to convert an access table to a csv file with either a macro or a module in an access database??? I can use either access 2003 or access 2007.
3
by: paul321 | last post by:
Hello, I am using Access 2003 to link to a DB2 database. I have established the ODBC link successfully and can link to the DB2 database. However, when the Link Table window appears, I am not...
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: 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,...
0
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...
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
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.