Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 18th, 2004, 09:30 AM
keeko keeko is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 keeko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Referencing Controls with Access 97

Hi,

I have a form with a tab control with 9 tabs. I have worked out how to make a table visible in response to entry made on a combo box on my form. This is achieved via a function which is called as the form is opened and also when data entry is made via the combo box. I'm now trying to tidy up the code so that I reference each tab control using a variable.

This code works:

With Me(NewClaimTab)
.Visible = True

End With

However this code doesn't:

Dim strTabName as String

strTabName = "NewClaimTab"
With Me(strTabName)
Visible = True

End With

I get the message The expression Before Update you entered as the event property setting produced the following error: Method or data member not found.

Am I missing something simple here or is this simply not possible within Access 97?

Reply With Quote
  #2  
Old August 18th, 2004, 09:37 AM
keeko keeko is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 keeko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face I was missing something simple!

I had a column in a table with the name TabName - the same as my variable. Lesson learned!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Referencing Controls with Access 97


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 6 hosted by Hostway
Stay green...Green IT