Unload Form By Clicking on Flash Button
Hi,
I am trying to unload a form from clicking on a Flash Button!
I have been using the FSCommand function, to enable me to click on flash buttons in VB, but when I try to unload the form, it forces me to close VB and says:
'VB has caused an error in SWFlash.OCX'
I have managed to put the code I need on a command button:
The command buttons Cancel property is set to true!
Private Sub cancel_Click()
'Since I am using a database, I set the connections to nothing, incase I want to reopen this form later
Set rsControls = Nothing
Set cnControls = Nothing
'Show the next form I want to view
menu_form.Show
'Unloads the last form I was on
Unload admin_form
End Sub
The above code works fine on a command button, but not on FSCommand for my flash buttons! This is the first code that I cant get to work, from clicking on the flash!!! Must have something to do with either the cancel property, as there isnt one for flash components, or unloading!!!
Any help, will be appreciated, Thanks, Matt