473,322 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Access 2000 Tab Control OnChange Event does nothing

Please Help.
I have a tab control with 4 tabs.
When a tab is selected, I want to "do stuff".
I thought to just do this:
Usint the tabControls OnChange event
If MyTabControl.Value = 0 then (the first tab is selected)
Do stuff...
End if

or use a select case 0 - 3 for each tab.

But the tabcontrol seems to ignore the OnChange Event.
This doesn't even doe anything

Private Sub MyTabControl_OnChange()
msgbox "hi"
end sub
????

any ideas.
Please can anyone help me.

Nov 13 '05 #1
4 4451
"Rick" <Ri********@yahoo.com> wrote
I have a tab control with 4 tabs.
When a tab is selected, I want to "do stuff".
I thought to just do this:
Usint the tabControls OnChange event
If MyTabControl.Value = 0 then (the first tab is selected)
Do stuff...
End if

or use a select case 0 - 3 for each tab.

But the tabcontrol seems to ignore the OnChange Event.
This doesn't even doe anything

Private Sub MyTabControl_OnChange()
msgbox "hi"
end sub


Rick,

I use the OnChange event for tab controls. I check the tabs Value, just as
you say above. Works for me.

Perhaps something else is the problem.
Darryl Kerkeslager
Nov 13 '05 #2
Rick wrote:
Please Help.
I have a tab control with 4 tabs.
When a tab is selected, I want to "do stuff".
I thought to just do this:
Usint the tabControls OnChange event
If MyTabControl.Value = 0 then (the first tab is selected)
Do stuff...
End if

or use a select case 0 - 3 for each tab.

But the tabcontrol seems to ignore the OnChange Event.
This doesn't even doe anything

Private Sub MyTabControl_OnChange()
msgbox "hi"
end sub
????

any ideas.
Please can anyone help me.


Are you sure the OnChange property box has "[Event Procedure]" entered?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #3

Rick Brandt wrote:
Rick wrote:
Please Help.
I have a tab control with 4 tabs.
When a tab is selected, I want to "do stuff".
I thought to just do this:
Usint the tabControls OnChange event
If MyTabControl.Value = 0 then (the first tab is selected)
Do stuff...
End if

or use a select case 0 - 3 for each tab.

But the tabcontrol seems to ignore the OnChange Event.
This doesn't even doe anything

Private Sub MyTabControl_OnChange()
msgbox "hi"
end sub
????

any ideas.
Please can anyone help me.
Are you sure the OnChange property box has "[Event Procedure]"

entered?
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


That was it. OMG I can't believe it.
Over a decade with Access and I didn't even look back at that.
Thank You !!!

Rick

Nov 13 '05 #4
Rick wrote:
Rick Brandt wrote:
Rick wrote:
Please Help.
I have a tab control with 4 tabs.
When a tab is selected, I want to "do stuff".
I thought to just do this:
Usint the tabControls OnChange event
If MyTabControl.Value = 0 then (the first tab is selected)
Do stuff...
End if

or use a select case 0 - 3 for each tab.

But the tabcontrol seems to ignore the OnChange Event.
This doesn't even doe anything

Private Sub MyTabControl_OnChange()
msgbox "hi"
end sub
????

any ideas.
Please can anyone help me.


Are you sure the OnChange property box has "[Event Procedure]"


entered?
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

That was it. OMG I can't believe it.
Over a decade with Access and I didn't even look back at that.
Thank You !!!

Rick


This can happen if you cut and paste controls, an easy way to re-connect
event procedures is go to the module, Press Ctrl+A then Ctrl+X then
Ctrl+V. That will re-connect them all (provided no names have changed in
the meantime).
--
This sig left intentionally blank
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Good Man | last post by:
Hi there I'm adding form fields on the fly with some javascript DOM programming. I basically just clone a hidden <div>, then adjust node properties to make this new <div> have unique values...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
2
by: Lyn | last post by:
Hi, I have a text control on a form which is bound to table field StartDate which is in Date format. When updating the table record via the form, any data entered into the StartDate control is...
8
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my...
10
by: david.bercot | last post by:
Hi, I have a big problem with a simple event : onchange !!! If I write this page : <html> <body> <form id="vu"> <input id="var01" name="var01" size="5" onchange="return false;"/> </form>...
2
by: jupitermoonbeam | last post by:
Hi, I wondered if anyone can help. I have scowered the web and found absolutely nothing that relates to my particular problem and I am pulling my hair out. Basically, I have a scenario where...
2
by: Paolo | last post by:
Hi to all, I have an error that drove me crazy. Try the following page that should only allow to upload a file: <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">...
1
by: seahorse298 | last post by:
I am using MS Access 2000 on a Windows XP machine. I have a list form, listing the number of companies a business is dealing with. I have a filter field on the form which is used to filter the...
1
by: bambr | last post by:
I'm using following code: function cloneRow(tBodyId, sourceRowId) { var obj = document.getElementById(tBodyId); if(obj.tagName != 'TBODY') { for(var i = 0; i < obj.childNodes.length;...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.