Hello All,
I have the following code that I inherited:
I know this code is wrong how do I just press the enter key in the code to be able to use the parameter query report from the Access DB?
I have the following code that I inherited:
Code:
'Import the updated list
'Variable Declaration
SrcFilePath = ThisWorkbook.Path & "\01_Database.accdb"
SrcQuery = "SELECT [QryFNL_Report].* FROM [QryFNL_Report];"
TgtSheet = "DATA_Clean"
Tgt1stCell = "iPt_NewData"
TgtHeaderOffset = 8
' Create Parameter Object.
Set Param1 = Cmd1.CreateParameter(, adInteger, adParamInput, 5)
Param1.Value = " "
Cmd1.Parameters.Append Param1
Set Param1 = Nothing
I know this code is wrong how do I just press the enter key in the code to be able to use the parameter query report from the Access DB?