> At design time connection string used in ADODC control is
> hard coded - at
> runtime I amend the connection string in form1 load event.
> However prior
> to executing the load event a error message is called saying
> the database
> which is hard coded at design time does not exist - the form
> load event
> then fires and the amended connection string takes effect
> and form1 and
> the datagrid control load and are shown linked to the
> correct database.
>
> I need to suppress the ADODC error message I thibk through
> and infomessage
> event - can any one help!
>
> Thanks
>
> Andrew Lawrence
Write a sub main in a module and set it as startup
(Project -> Properties -> Startup Object)
public sub main()
fmrLogin.show
end sub
'--------frmLogin:
public sub cmdOK_click
g_username=txtUsr
g_password=txtPwd
'do the database connection stuff
frmWithGrid.show
frmLogin.hide
end sub
This taken from memory, but this is pretty much
how I handle this ...
aake