Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2000 app does not work on Windows 2000 1

Status
Not open for further replies.

CindyK

Technical User
Joined
Jan 29, 2001
Messages
173
Location
US
I created an application in Access 2000 that has been working fine on windows 98 and XP machines. The database is split into a front end/backend - with the back end on the server.

The client now has two windows 2000 professional machines (with all recent service patches done, including SP4), and wants to run the Access application on it. The program bombs out all over the place in Windows 2000. It continues to work fine on the older OS's even while it's bombing out on the windows 2000 machine... I have the application the server as well (for some reason the performance is actually BETTER doing that than putting it on the client machine), but I have also tried putting the front end application on each workstation's hard drive with the same problem.

I am using DAO code. I have gone through ALL of the code and double checked to make sure that I implicitly reference the dao library vs ado in any code (i.e. referencing dao objects with the dao prefix - dim db as dao.database). I've checked references - I'm not using ADO at all in this database - and not only do I have the correct references, but I've never gotten an error saying I don't have the right ones (I've found many many people with similar problems and it seems it always turned out it was a reference problem).

I've tried creating a new blank database on the win2000 machine, importing the front end, fixing the references, and it seems to work for a short bit (sometimes) and then sooner or later I get miscellaneous error messages that don't pinpoint the problem. The most common error message is "method value of object textbox failed". I've tried running this as an mde with no difference.

Possibly related, this particular machine will not allow the user to double click an mdb file to open Access. One has to open Access first and then use the file open option to get to the file. Trying to double click an mdb file opens a windows installer message, stating that I need the Microsoft Office 2000 Disc 2. When I insert that disk, I get "error 1706, no valid source code found". We tried uninstalling and reinstalling Office with no success, and later wiped the entire disk clean, did a new windows 2000 professional install, added Office 2000, did all the service pack updates.

From what I've read, the Jet update for windows 2000 is different from XP and 98, but it's covered in the windows 2000 SP4 update. Is it possible that I can't share this file on the network with both a windows 2000 client and a windows 98/xp client because of jet differences? Yikes? Doesn't seem possible.

Has anyone run into this - can they help?? Sorry for all the rambles - not sure how to write this concisely.

Since I'm able to move around in forms and do quite a bit before the errors begin, I've spent a lot of time trying to figure out where the first sign of trouble appears. It MIGHT be on the after update property of a text box that has the following code:

Private Sub lngCFCCaseWorker_AfterUpdate()
On Error GoTo Err_handle

'save the old value
Dim lngPriorCW As Long
lngPriorCW = Nz(Me![lngCFCCaseWorker].OldValue, 0)

'if the user added a new record using the asterisk rather than the add new button,
'the case id will be zero. Assign the new number now so that any subforms have the
'correct ID assigned.
If IsNull(Me!lngChildID) Or Me!lngChildID = 0 Then
Me.lngChildID = MultiNextChildID()
End If

'record has to be saved in order to create the history
DoCmd.RunCommand acCmdSaveRecord

If IsNull(Me![dtmOpenDate]) Then
MsgBox "The open date isn't yet completed - this will have to be manually added to the SC history!"
End If

'check to see if any prior CW's have been assigned to this case
If DLookup("[CountCase]", "qryCountCaseCFC") = 0 Then
'this is a first time referral, add case worker to tblSCAssignments (need to save the record)

DoCmd.SetWarnings False
DoCmd.OpenQuery "qappCFCWorker"
DoCmd.SetWarnings True
Else
'this is not a first time referral. Update ID (internal discharge) information for current SC
Dim dtmCurrentDate As Date
dtmCurrentDate = Date

Call AddCFCDischarge(lngPriorCW, "ID", dtmCurrentDate)

'add the new SC with an internal transfer tag

DoCmd.SetWarnings False
DoCmd.OpenQuery "qappCFCWorkerIT"
DoCmd.SetWarnings True

End If
'refresh the subform so user can see the changes
Me![frmCFCHistory].Form.Requery

Exit_Err_handle:
Exit Sub

Err_handle:
MsgBox Err.Number & " " & Err.Description
Resume Exit_Err_handle

--
Of course, this is calling some other functions - so I realize this is not very complete, but I'm guessing the problem is not being caused by specific code at this point...

Help!

CindyK.
 
Sounds like a service pack issue. Have you updated 2000 with Sp1 & 2 ? Have you updated MDAC to at least 2.6 ? You need to be at that level of 2000 bugs out all over the place.
 
We've updated both MS office and Windows 2000 with all recent service packs. MDAC is 2.6 - I believe that was part of the windows 2000 Service Pack 4.

Cindy K.
 
I used Kbase article Q239114 which directs me to the windows 2000 Service Pack 4. This states that if you install that service pack, there is no need to install Jet 4 separately because it is included in the Service Pack 4.

Think that's wrong? I didn't check the dll versions after doing the SP4 update - not sure exactly what to look for ...

Cindy K.
 
I don't know. We had a problem exactly like you are describing. We converted a Win 98 machine to 2000, and our Access app got goofy. We applied Office SP1&2, a patch called mdac_typ.exe, which is the mdac 2.6 update, and then Jet40Sp3_Comp.exe. The problems went away. We applied 200 SP4 a couple of months after we installed these service packs. Everything still runs fine.
Also, are there any third party OCX's used in the app? Sometimes they need an update as well. They also may not be properly registered.

 
Hmmm...sounds like it's worth a try doing the Jet updates directly. Am not using any OCX's... Won't have a chance to try this until next week, but will come back to mark the post if it helps and to plead if not!! Thx.

Cindy K.
 
I don't think the Win 2000 sp is going to replace all the components specific to Access, so you might be right.
 
Redoing the service packs did the trick on ONE of the PC's - not the other one. Leads me to suspect that it IS still a service pack issue... the updates weren't done in the exact same order on both PC's. Grr!!! Thanks for the help!

Cindy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top