Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 10th, 2005, 06:28 AM
Sherrie Sherrie is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 155 Sherrie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 57 m 26 sec
Reputation Power: 5
Opening a Form in Microsoft Visual Basic 2005 Express Edition

Hi all,



I've been using VB in Access, but have just started using VB 2005 a couple of days ago, so I'm pretty much a newbie

I have searched the other threads in the forum, but cant seem to be able to use the following code

Code:
formname.hide
formname.show


neither can i use the following code

Code:
DoCmd.OpenForm "formname"


I'm sure that this is pretty elementary, but I'd really appreciate some help.

Thanks in advance!
__________________
~Sharon~

Reply With Quote
  #2  
Old November 10th, 2005, 08:11 AM
Sherrie Sherrie is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 155 Sherrie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 57 m 26 sec
Reputation Power: 5
Just for further clarification,

The error message I got while trying to debug was that the DoCmd was not declared. Same thing with the hide and show form

Appreciate any help!

Thanks

Reply With Quote
  #3  
Old November 10th, 2005, 07:43 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 9 m 23 sec
Reputation Power: 181
DoCmd is only available in Access VBA (or possibly other Office products VBA).
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #4  
Old November 10th, 2005, 09:03 PM
Sherrie Sherrie is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 155 Sherrie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 57 m 26 sec
Reputation Power: 5
Doug, thanks a lot for taking the time to reply.

Could you please guide me to where I can find information on how to code this part?

Would really appreciate it!

Reply With Quote
  #5  
Old November 11th, 2005, 12:02 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 9 m 23 sec
Reputation Power: 181
Quote:
Originally Posted by Sherrie
Doug, thanks a lot for taking the time to reply.

Could you please guide me to where I can find information on how to code this part?

Would really appreciate it!

There are plenty of examples in the VB online help, you could start there.

Reply With Quote
  #6  
Old November 14th, 2005, 08:52 AM
Sherrie Sherrie is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 155 Sherrie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 57 m 26 sec
Reputation Power: 5
Hi, Doug,

Thanks for your reply

I found out what my mistake was.

I should have used

Code:
Me.Hide()
frmMainMenu.Show()


Thanks again

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Opening a Form in Microsoft Visual Basic 2005 Express Edition


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT