Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening Forms
Message
 
À
20/03/2003 10:37:57
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00768083
Message ID:
00768434
Vues:
16
You need to add it to the Forms collection:
Private Sub Command1_Click()
Dim x As Form

    Set x = Forms.Add("Form2")
    x.Show
End Sub
>Is it possible to store the name of a form in a database (Access) and then somehow call that form to show.
>
>Example
>
>sql = "SELECT FormName FROM Forms "
>
>rs.open sql, cnn
>
>If Not rs.eof Then
> rs!FormName.Open
>End If
>
>I realize this code doesn't work but I wanted to give an example of what I am trying to accomplish. Is something like this possible?
>
>Thanks Nichole
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform