I'm getting "Run-time error '-217417848 (80010108)': Method 'Value' of object '_AccessField' failed" on a simple textbox value assignment.
The VBA statement in question ("Me!VisitID = GetSiteID() & Me!VisitNum"
is in the BeforeInsert event of a subform, and the textbox which fails on the assignment is bound to the primary key of one of the tables in the subform's record source. Altho I first suspected the GetSiteID function to be the problem source, it turns out that even setting the Me!VisitID value to a simple string constant fails. The same thing works fine in the parent form's BeforeInsert event ("Me!ClientID = GetSiteID() & Me!ClientNum"
.
The bizarre thing is that this runs fine on the other 6 PC's at the same site, and the 3 other PC's at a remote site. The PC that fails consistently is running Windows 2000 with Access 2000, like several of the other PCs. I've uninstalled and reinstalled Access (2000) on that PC and made sure there was adequate disk space and memory available, defragged the disk and done everything I can think of that might relate to this PC being different from the others. Any ideas as to what am I missing?
Altho I've seen this same error message in other messages in this forum, I've not seen a solution yet...just various "work arounds" that haven't worked for me - schum1 solved it by changing the bang operator to a dot, but that didn't help in my case. I'd appreciate any suggestions you might have.
Thanks!
The VBA statement in question ("Me!VisitID = GetSiteID() & Me!VisitNum"
The bizarre thing is that this runs fine on the other 6 PC's at the same site, and the 3 other PC's at a remote site. The PC that fails consistently is running Windows 2000 with Access 2000, like several of the other PCs. I've uninstalled and reinstalled Access (2000) on that PC and made sure there was adequate disk space and memory available, defragged the disk and done everything I can think of that might relate to this PC being different from the others. Any ideas as to what am I missing?
Altho I've seen this same error message in other messages in this forum, I've not seen a solution yet...just various "work arounds" that haven't worked for me - schum1 solved it by changing the bang operator to a dot, but that didn't help in my case. I'd appreciate any suggestions you might have.
Thanks!