I want to use a variable on a DoCmd so that I can use DLookup to fund how to open each file in VBA.
When I use the below snipit of code I get the error Method or data member not found for "DT" and Type Mismatch for "VO". Anyone have any idea's? Thanks,
DT = "OpenQuery"
VO = "acViewNormal"
DoCmd.DT RepList, VO, acReadOnly
When I use the below snipit of code I get the error Method or data member not found for "DT" and Type Mismatch for "VO". Anyone have any idea's? Thanks,
DT = "OpenQuery"
VO = "acViewNormal"
DoCmd.DT RepList, VO, acReadOnly