Hello,
I have a form with dynamic record source.
I wrote a code to update the record source when it is opened:
Code:
DoCmd.OpenForm "frmUpdateList", acDesign
mySQL = "SELECT * from " & listName
Forms!frmUpdateList.Form.RecordSource = mySQL
Forms!frmUpdateList!title.Caption = title
Forms!frmUpdateList!listData.controlSource = controlSource
'Forms!frmUpdateList.Requery
DoCmd.Close acForm, "frmUpdateList", acSaveYes
DoCmd.OpenForm "frmUpdateList", , , , , acDialog
The code is working properly in accdb/accdr files, but in accde
file I get an error 7802 the command you specified is not available in accde database.
Is there an alternative way of updating the record source ?
Thank you for your help