Importing function

G

Guest

Hi,

In the "Docmd.Transfertext" command, can you set
the "TransferText" as a variable?
If so how would you insert the variable, I have tried but
the command keeps coming up incorrect

DoCmd. & import_format &

Regards
Ian
 
V

Van T. Dinh

You can use SELECT CASE statement like:

SELECT CASE import_format
CASE "TransferText"
DoCmd.TransferText ...
CASE "Soome other thing"
DoCmd. ...
CASE ELSE
...
END SELECT

HTH
Van T. Dinh
MVP (Access)
 

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