Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening Forms
Message
From
20/03/2003 11:10:38
 
 
To
20/03/2003 10:37:57
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00768083
Message ID:
00768119
Views:
15
You could put all the possible choices in a Select Case statement:
sql = "SELECT FormName FROM Forms"
rs.open sql, cnn

If Not rs.eof Then
   Select Case rs!FormName
   Case "Form1"
      Form1.Open
   Case "Form2"
      Form2.Open
   Case "Form3"
      Form3.Open
   ...
   End Select
End If
It's not pretty but it work.

HTH

>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform