Hi,
I am developing an application in Access 2000 and am having a problem with setting the DestinationDB and sourcedatabase properties for an Append query from code.
I have tried:
strFilter = ahtAddFilterItem(strFilter, “Access Files (*.mdb)”, “*.mdb”)
strexportFileName = ahtCommonFileOpenSave(Filter:=strFilter, OpenFile:=False, _
DialogTitle:=”Select the Benchmarking Database…”, _
Flags:=ahtOFN_HIDEREADONLY)
queries![qry_uploadauditdetails].destinationdb = strexportFileName
queries![qry_uploadanswers].destinationdb = strexportFileName
queries![qry_LastUploadCompanyNumber].sourcedatabase = strexportFileName
DoCmd.OpenQuery “qry_UploadAuditDetails”
DoCmd.OpenQuery “qry_UploadAnswers”
The need for this function arises from our need to benchmark audit results which will be captured by a number of people.
At this stage, the only way I can see to get around this is to delete the existing append query and create a new one each time this is run.
Regards and thank
Niall Eddery