CreateNewWorkgroupFile Bug?

J

John T.

Has anyone else noticed that the CreateNewWorkgroupFile method of the
Access 2002 application object throws an exception when the
WorkgroupID has a length of 20 characters? The error message is as
follows:

Run-time error '-2147417851 (80010105)': Method
'CreateNewWorkgroupFile' of object '_Application' failed

The interesting thing is that the file is created anyway and seems to
be completely useable. I'm creating the file with an ID like
iFE3UBukD2xFapbW0wP8 where the allowed characters are a-z, A-Z, and
0-9. If I drop the last character and try it with a 19 character
string there are no complaints.

I'm working with Access 2002 SP3 on Win XP SP2.

Thanks.
 
J

Joan Wild

I can't find the reference, but I recall there being a limit to the length - evidently it's 19.
 
J

John Slattery

I can't find the reference, but I recall there being a limit to the length - evidently it's 19.

--
Joan Wild
Microsoft Access MVP









- Show quoted text -

The reference can be found in MS Access Help > Administering and
Securing an Access File > Securing a Database > WorkGroups > Create,
Join, or Fix Workgroup Information Files. Item 4 under Create a New
Microsoft Access Workgroup Information File is clear that a workgroup
ID can be up to 20 numbers and upper or lower case letters. With
Workgroup Administrator, it is possible to create files with workgroup
IDs of 20 characters and, in fact, data entry for this field is
limited to 20 characters. It's hard to image that the intent would be
to do implement CreateNewWorkgroupFile differently.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top