Macro not working from Base to MySql

Below is a Macro I have been using in LibreOffice base version 7.3.1.3 and the previous 2 versions on a Windows 10.
I have had to connect my base to MySql ( using the most recent version ) to share the database for several other users now.
This is the Macro I was using. I am not sure what I will need to adjust for MySql.
Can anyone give a suggestion on what I need to do.

sub autoexec()
dim oController as object
oController = ThisDatabaseDocument.CurrentController
if Not oController.isConnected() Then oController.connect()
oController.loadComponent(com.sun.star.sdb.application.DatabaseObject.FORM,"SPLASHSCREEN",FALSE)
end sub

Sub SetSPLASHSCREEN
    Resize(40,50,1270,660)
End Sub

Thanks for any assistance

Can you open the form manually? If not, the problem has nothing to do with your macro code.

Hello,
There are two macros shown in the post. You do not specify which is the problem, what error is actually occurring or where/how the macro(s) are executed. Do not readily see this as an issue caused by switching to MySQL.
.
Best guess is the form name is incorrect or a called sub is missing or incorrect event to execute a sub.

Yes I can open the form manually. Once I get the form open the macro’s inside the form work correctly.

@mdriden
You have not specified, but the macro sub autoexec() should be attached to the Open Document event of Base.

That was the issue. It must have lost the setting going from Base to MySql.
Thanks,