missinglinq
AWF VIP
- Local time
- Yesterday, 20:00
- Joined
- Jun 20, 2003
- Messages
- 6,420
This is driving me nuts. I recently had to replace my hard drive. When I started working on my db I encontered problems
(not exactly unexpected).
Background:
When I "delete" a patient record it's not actually deleted, but rather has a checkbox called IsInactive that is selected on "deletion". This keeps the record from showing in the "Active Patient" form, but allows for the easy re-instatement of the patient at a later date (this is a fairly frequent event). A copy of the record is added to a Discontinued Patient table, to document the discontinuing of that patient's current case.
This part of the db has been up and running for six months without problems. I check the complete db, including all functions, at least once a week. After replacing my HDD I immediately installed Access2000 and started testing the db.
On trying to "delete" a record I got an "error 13" "type mismatch" message. Now obviously no data types had changed by simply placing a backup copy of the db on the computer after HDD replacement. The second line of the following sub was hilighted when I went into debug mode:
Private Sub DelRecord_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "DeadMansAppend" 'Adds copy of record to permanent DC table (DCClients)
[PtIsInactive].Value = True 'Marks record as inactive
[ClientName].SetFocus
Me.Requery
DoCmd.SetWarnings True
End Sub
I finally put this problem aside and went about re-installing other software. After reloading Visual Basic 6, I took a break and then came back to my db and ran it again, an lo and behold, IT RAN JUST FINE!!
In fact it ran fine for three days, but now the above problem has recurred...intermittently!!! Sometimes it works fine, sometimes it doesn't. I've compacted and repaired the db without luck, and I've even used the documenter to print out the field properties for both tables. All the fields match up vis a vis type.
Any ideas? Thanks in advance for any help.
The Missinglinq
P.S. Please excuse any rambling, I've been running a temperature of 102F all wek.
"It's got to be the going,
not the getting there that's good!"
-Harry Chapin
(not exactly unexpected).
Background:
When I "delete" a patient record it's not actually deleted, but rather has a checkbox called IsInactive that is selected on "deletion". This keeps the record from showing in the "Active Patient" form, but allows for the easy re-instatement of the patient at a later date (this is a fairly frequent event). A copy of the record is added to a Discontinued Patient table, to document the discontinuing of that patient's current case.
This part of the db has been up and running for six months without problems. I check the complete db, including all functions, at least once a week. After replacing my HDD I immediately installed Access2000 and started testing the db.
On trying to "delete" a record I got an "error 13" "type mismatch" message. Now obviously no data types had changed by simply placing a backup copy of the db on the computer after HDD replacement. The second line of the following sub was hilighted when I went into debug mode:
Private Sub DelRecord_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "DeadMansAppend" 'Adds copy of record to permanent DC table (DCClients)
[PtIsInactive].Value = True 'Marks record as inactive
[ClientName].SetFocus
Me.Requery
DoCmd.SetWarnings True
End Sub
I finally put this problem aside and went about re-installing other software. After reloading Visual Basic 6, I took a break and then came back to my db and ran it again, an lo and behold, IT RAN JUST FINE!!
In fact it ran fine for three days, but now the above problem has recurred...intermittently!!! Sometimes it works fine, sometimes it doesn't. I've compacted and repaired the db without luck, and I've even used the documenter to print out the field properties for both tables. All the fields match up vis a vis type.
Any ideas? Thanks in advance for any help.
The Missinglinq
P.S. Please excuse any rambling, I've been running a temperature of 102F all wek.
"It's got to be the going,
not the getting there that's good!"
-Harry Chapin