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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error "bad file name or number"

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
We have an Access97-database with some forms running on a windows95-platform and never had any trouble with accessing drives ( local or network ) in the Access-application. Since we switched over to Windows2000 as OS, we always get error "bad file name or number" when we want to view a network drive. This problem does not occur when we go to local harddrives or a local CD-romstation.

This is a piece of the code :

"
Private Sub CmbDriveBron_AfterUpdate()
On Error GoTo Err_CmbDriveBron_AfterUpdate

DirStringBron = Me!CmbDriveBron & ":\"
Me!Text11 = DirStringBron
Me!List4.Requery

Exit_CmbDriveBron_AfterUpdate:
Exit Sub

Err_CmbDriveBron_AfterUpdate:
MsgBox Err.Description
Resume Exit_CmbDriveBron_AfterUpdate

End Sub

"

We see that Access doesn't generate any error and that the system crashed on the "Me!List4.Requery"-command.

Does anybody have an idea what the problem may be ?
 
Is list4 a list of directories under the drive-letter? Kyle [pc1]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top