Hello:

I want to thank all that reply.

First, I want to thank the people that answered my question about submitting a form without pressing a button. There answer was <body onload="document.FormName.submit();">

Well I need some more help, can "document.formName.submit();" be use in something like this? (I can't make it work)

<%if x=1 then
"document.FormName.submit();"
else ??????????????(what ever)
end if%>

Or could I place "document.formName.submit();" in a SUB Procedure like this and then call the SUB? (I can't make this work either.)

<%Sub Name()
"document.FormName.submit();"
end sub%>

My problem is that when the user clicks on the submit button(Which is <input type="image/click.jpg width="81" height="20" borden="0">) I have to retreive several pieces of information from several tables in a MDB database BEFORE my FORM can be submitted. I don't want to make the user have to click another button.

Thanks again