Hi,
I'm trying to create a command button on a Data Access Page which will run a update query from the same database.
The VBScript for the command button which doesn't work is as follows:

<SCRIPT language=vbscript event=onclick for=Command0>
<!--
Sub Command0_Click()

stDocName = "SoftwareHardwareUpdate"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Command0_Click:
Exit Sub

Err_Command0_Click:
MsgBox Err.Description
Resume Exit_test_Click

End Sub

What am I doing wrong here?
Thanks