G
Guest
I have a button on a form that runs this code. It opens a script saved in a
folder in Query analyzer and hit's Enter when the connect to SQL Server
dialog box opens. I just can't seem to get it to start running the script.
i still have to hit F5 manually, but i wan't the script to start running
automatically.
Shell """C:\Program Files\Microsoft SQL Server\80\Tools\Binn\isqlw.exe""" & _
"""N:ASSOC-3.sql""", vbNormalFocus
SendKeys "{Enter}", True
SendKeys "{F5}", True 'This doesn't seem to work.
--
Billy Rogers
Dallas,TX
Currently Using SQL Server 2000, Office 2000 and Office 2003
folder in Query analyzer and hit's Enter when the connect to SQL Server
dialog box opens. I just can't seem to get it to start running the script.
i still have to hit F5 manually, but i wan't the script to start running
automatically.
Shell """C:\Program Files\Microsoft SQL Server\80\Tools\Binn\isqlw.exe""" & _
"""N:ASSOC-3.sql""", vbNormalFocus
SendKeys "{Enter}", True
SendKeys "{F5}", True 'This doesn't seem to work.
--
Billy Rogers
Dallas,TX
Currently Using SQL Server 2000, Office 2000 and Office 2003