ChiTownDiva
Technical User
Happy Monday All...
I have some code:
Function GoGet()
DoCmd.TransferText acImportFixed, "MGT/OWNER Import Specification", "MGMT", "C:\Documents and Settings\r60016\My Documents\Linkage\Supermarkets\Albertsons\Imports\MANAGEMENT.txt", False, ""
Beep
MsgBox "Management File Import Successful!", vbOKOnly, "MANAGEMENT"
End Function
What I want to do is pass a couple of parameters to this. Where in the code it says "C:\Documents and Settings\r60016\My Documents\Linkage\Supermarkets\Albertsons\Imports\MANAGEMENT.txt", I would like to pass a parameter:
C:\Documents and Settings\r60016\My Documents\Linkage\Channel\Store\Imports\MANAGEMENT.txt
from a form.
I couldn't really define the Channel and Store parameters within the code, there's over 50 channels and a few hundred stores.
Is this doable?
Thanks in advance for any assistance.
ChiTownDiva![[ponytails] [ponytails] [ponytails]](/data/assets/smilies/ponytails.gif)
I have some code:
Function GoGet()
DoCmd.TransferText acImportFixed, "MGT/OWNER Import Specification", "MGMT", "C:\Documents and Settings\r60016\My Documents\Linkage\Supermarkets\Albertsons\Imports\MANAGEMENT.txt", False, ""
Beep
MsgBox "Management File Import Successful!", vbOKOnly, "MANAGEMENT"
End Function
What I want to do is pass a couple of parameters to this. Where in the code it says "C:\Documents and Settings\r60016\My Documents\Linkage\Supermarkets\Albertsons\Imports\MANAGEMENT.txt", I would like to pass a parameter:
C:\Documents and Settings\r60016\My Documents\Linkage\Channel\Store\Imports\MANAGEMENT.txt
from a form.
I couldn't really define the Channel and Store parameters within the code, there's over 50 channels and a few hundred stores.
Is this doable?
Thanks in advance for any assistance.
ChiTownDiva
![[ponytails] [ponytails] [ponytails]](/data/assets/smilies/ponytails.gif)