VB How-ToAsk your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have form names stored in database in Text type. I am unable to call to them in the program due to its string type.
if I give form = <formname in the database > it gives error type mismatch
Please help urgently
isn't that a little dangerous? what it someone modify the names in the VB project? (I saw this happens already...)
Anyhow, Phil suggestion is correct.
Marco
Although I have tried your solution it gives error invalid property value at forms.add line
let me explain you my problem in detail I have many forms in my project depending on type of user I am to show a particular form. So
i have created a table in ACCESS and stored username and corresponding form name in the datafield as string for ex.
duser(text type) dfrmnm(text type in MSACCES)
A form1
B form2
C form3
Now at the time of excution I wish to show the form corressponding to User automatically.