Wrox Programmer Forums
| 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 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
 
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

 
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
 
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?
 
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??


 
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




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





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