2007 Application problem on network laptops only!

R

R Fourt

I have a split application with data on a network server and app on users
system. Created an install package for the front end to include RT 2007.
Installed on all network desktop PCs and network Laptops. On the desktops
everything works great. On the laptops, not so much.

On some older Dells, some work and some don't. On ALL the newer IBM laptops
(leneo's?) the app won't run. Other small Access apps run fine, but the app
in question will not.

When I start the app on the Laptops I get the old "You cannot carry out this
action..." error. Error handler in place but doesn't capture anything.

I've checked "Offline files" on the laptops and it doesn't seem to matter
(both pre and post install).

ALL PCs are running XP SP3.

Any thoughts before I smash my head to pieces?

Thanks,
Robert
 
R

R Fourt

Well I've done a little more investigative work and the problem seems to be
tied to the advapi.dll. Here's the dec:

Public strUserName As String

Private Declare Function apiGetUserName Lib "advapi32.dll" Alias
"GetUserNameA" _
(ByVal lpBuffer As String, nSize As Long) As Long

and here's the function

Public Function GetUserName() As String

Dim lngLen As Long, lngX As Long

strUserName = String$(254, 0)
lngLen = 255

lngX = apiGetUserName(strUserName, lngLen)

If (lngX > 0) Then
strUserName = Left$(strUserName, lngLen - 1)
Else
strUserName = vbNullString
End If

GetUserName = LCase(strUserName)

End Function


So, the both the laptops and desktops have XP SP3. But the laptops crap out
when they hit the function.
 

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