Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 23rd, 2006, 08:35 AM
Authorized User
 
Join Date: Oct 2006
Location: Kolkata, West Bengal, India.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tab Control

Hi Frnds,

             I am having a situation where depending on combo box's content, I have to visible TAB CONTROL's page. I have done it. But the problem is that it is fine at first attempt. But after changing the content of combobox on same page it is not working. Can you please help me on this issue with example code??

Thanks

Reply With Quote
  #2 (permalink)  
Old November 23rd, 2006, 09:22 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: Salisbury, Wiltshire, United Kingdom.
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to leehambly
Default

Prasanta,

From the sound of it you are probably getting a type mismatch, but without knowing what is not working it is almost impossible to tell.

What I think you are saying is:

1. I have a combo box which has a rowsource
2. When I make a selection an action is performed based on the selected item in the combo box
3. It worked with the first type of rowsource
4. It does not work with a new type of rowsource

So, whats the difference between the rowsources?

Give us a bit more info and we can get this one...

Lee
Reply With Quote
  #3 (permalink)  
Old November 23rd, 2006, 12:28 PM
Authorized User
 
Join Date: Nov 2006
Location: , , .
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

im thinking you need to add code for the "after change" event of the combo, either that or add a button to trigger some code, what event are you using now to trigger the code or is it bound?
Reply With Quote
  #4 (permalink)  
Old November 24th, 2006, 07:34 AM
Authorized User
 
Join Date: Oct 2006
Location: Kolkata, West Bengal, India.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Lee,
        I have modified my question. Hope now you can help me.

       I am having a situation where depending on combo box's content, I have to visible TAB CONTROL's page. I have done it. But the problem is that it is fine at first combo selection. But after changing selection of the combobox on same page it is not working. Can you please help me on this issue with example code??


Reply With Quote
  #5 (permalink)  
Old November 27th, 2006, 05:51 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: Salisbury, Wiltshire, United Kingdom.
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to leehambly
Default

Gigaboy is right... you need to put a requery on the control which you are expecting to change, and put it in the AfterUpdate event... in fact try them out to see which works the way you want it to.

The code you should use would be something like:

me.lstBox.requery

Fairly easy... the lstBox refers to the control!

Lee
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable a tab on a tab control. dbradley VB.NET 6 April 14th, 2011 10:04 AM
tab control amey.agnihotri C# 2005 1 June 19th, 2007 04:10 AM
Calendar Control with Tab Control Slicemahn Access 1 June 12th, 2006 10:35 PM
Tab control Bhanu VS.NET 2002/2003 2 March 6th, 2005 04:12 AM
Tab Control Bhanu .NET Framework 2.0 1 December 2nd, 2004 07:25 AM



All times are GMT -4. The time now is 09:11 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.