C
chris0309 via AccessMonster.com
Hi All,
Im using a DoCmd.TransferText command to upload a file to the database. If
there is no file or the file name is misspelled then the first error message
appears. However if the user clicks and uploads the database and then clicks
on the button again then I get a message up saying "Microsoft Office Access
was unable to append all the data to the table" im trying to catch this
message so i can display my own message as ive done with the first error
message.
Can anyone help please?
The code im using is below. Thanks
NoFileError:
If Err.Number = 3011 Then
MsgBox ("There is no file within the C drive called test.txt")
End If
If Err.Number Then
MsgBox ("You have already uploaded the new file to the database")
End If
Im using a DoCmd.TransferText command to upload a file to the database. If
there is no file or the file name is misspelled then the first error message
appears. However if the user clicks and uploads the database and then clicks
on the button again then I get a message up saying "Microsoft Office Access
was unable to append all the data to the table" im trying to catch this
message so i can display my own message as ive done with the first error
message.
Can anyone help please?
The code im using is below. Thanks
NoFileError:
If Err.Number = 3011 Then
MsgBox ("There is no file within the C drive called test.txt")
End If
If Err.Number Then
MsgBox ("You have already uploaded the new file to the database")
End If