G
Guest
I am trying to copy a table out to a dbf which works fine. The thing I am
having a little problem with is make the file name a variable. Here's what
I'm using:
Function COPYtoSVR()
On Error GoTo COPYtoSVR_Err
Dim WhoID As String
WhoID = UCase(Left(fOSUserName(), 3))
DoCmd.TransferDatabase acExport, "dBase III", "M:\", acTable, "MASTER",
WhoID + ".dbf", False
COPYtoSVR_Exit:
Exit Function
COPYtoSVR_Err:
MsgBox Error$
Resume COPYtoSVR_Exit
End Function
You might notice that I am using the fosUserName function that was offered
on the discussion group. Do you see what I am doing wrong. I want to save
each person's work under their username.dbf.
Thanks in advance.
having a little problem with is make the file name a variable. Here's what
I'm using:
Function COPYtoSVR()
On Error GoTo COPYtoSVR_Err
Dim WhoID As String
WhoID = UCase(Left(fOSUserName(), 3))
DoCmd.TransferDatabase acExport, "dBase III", "M:\", acTable, "MASTER",
WhoID + ".dbf", False
COPYtoSVR_Exit:
Exit Function
COPYtoSVR_Err:
MsgBox Error$
Resume COPYtoSVR_Exit
End Function
You might notice that I am using the fosUserName function that was offered
on the discussion group. Do you see what I am doing wrong. I want to save
each person's work under their username.dbf.
Thanks in advance.