A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo Box To Hide Tab Control



 
 
Thread Tools Display Modes
  #11  
Old April 5th, 2005, 08:37 PM
Lowrider72
external usenet poster
 
Posts: n/a
Default

Compile error:

End If without block If

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.



what is the error message?

  #12  
Old April 5th, 2005, 08:43 PM
Lowrider72
external usenet poster
 
Posts: n/a
Default

If you'd like gimme a generic email address and Ill email this sucker to you

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.



what is the error message?

  #13  
Old April 5th, 2005, 08:45 PM
kabaka
external usenet poster
 
Posts: n/a
Default

Post all the code for the entire AfterUpdate() event where you are getting
your error. If all that you are missing is an "End if" to get this working,
I'll know that I've been at the office too long today and it's time to go
home.



"Lowrider72" wrote:

Compile error:

End If without block If

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.



what is the error message?

  #14  
Old April 5th, 2005, 08:49 PM
Lowrider72
external usenet poster
 
Posts: n/a
Default

I wish it was that simple...here is the entire code..

Private_Sub cboComboBox_AfterUpdate()
If Me.cboComboBox.Value = "Suspect" Then
Me.tester.Visible = True
End If
End Sub

"kabaka" wrote:

Post all the code for the entire AfterUpdate() event where you are getting
your error. If all that you are missing is an "End if" to get this working,
I'll know that I've been at the office too long today and it's time to go
home.



"Lowrider72" wrote:

Compile error:

End If without block If

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.


what is the error message?

  #15  
Old April 5th, 2005, 08:53 PM
Lowrider72
external usenet poster
 
Posts: n/a
Default

Opps, the one with the error is as follows...

Private_Sub cboComboBox_AfterUpdate()
If Me.cboComboBox.Value = "Suspect" Then _
Me.tester.Visible = True
End If
End Sub


"Lowrider72" wrote:

I wish it was that simple...here is the entire code..

Private_Sub cboComboBox_AfterUpdate()
If Me.cboComboBox.Value = "Suspect" Then
Me.tester.Visible = True
End If
End Sub

"kabaka" wrote:

Post all the code for the entire AfterUpdate() event where you are getting
your error. If all that you are missing is an "End if" to get this working,
I'll know that I've been at the office too long today and it's time to go
home.



"Lowrider72" wrote:

Compile error:

End If without block If

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.


what is the error message?

  #16  
Old April 5th, 2005, 08:57 PM
kabaka
external usenet poster
 
Posts: n/a
Default

ok - I won't be able to look at if for about 1 1/2 hours though. Sorry.

Note: It's not a good idea to post email addresses in a newsgroup as
spammers harvest them from here (or so I've heard). You should be able for
figure out my email address though.

cpalmer at shaw dot ca


"Lowrider72" wrote:

If you'd like gimme a generic email address and Ill email this sucker to you

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.



what is the error message?

  #17  
Old April 5th, 2005, 09:01 PM
kabaka
external usenet poster
 
Posts: n/a
Default

ARRGHHHH!!

Loose the "_" after the Then and you'll be good to go. That's throwing off
your if.






"Lowrider72" wrote:

Opps, the one with the error is as follows...

Private_Sub cboComboBox_AfterUpdate()
If Me.cboComboBox.Value = "Suspect" Then _
Me.tester.Visible = True
End If
End Sub


"Lowrider72" wrote:

I wish it was that simple...here is the entire code..

Private_Sub cboComboBox_AfterUpdate()
If Me.cboComboBox.Value = "Suspect" Then
Me.tester.Visible = True
End If
End Sub

"kabaka" wrote:

Post all the code for the entire AfterUpdate() event where you are getting
your error. If all that you are missing is an "End if" to get this working,
I'll know that I've been at the office too long today and it's time to go
home.



"Lowrider72" wrote:

Compile error:

End If without block If

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.


what is the error message?

  #18  
Old April 5th, 2005, 09:05 PM
Lowrider72
external usenet poster
 
Posts: n/a
Default

okay..I was under the impression everyone had a garbage hotmail account for
instances such as this lol...Hotmail is good for that..I'll send it to you
and whenever you get the chance have a look...Its the one that i have created
as a test...I've been banging my head off my desk for a few hours over this
one...I really appreciate your time and effort..

Regards

"kabaka" wrote:

ok - I won't be able to look at if for about 1 1/2 hours though. Sorry.

Note: It's not a good idea to post email addresses in a newsgroup as
spammers harvest them from here (or so I've heard). You should be able for
figure out my email address though.

cpalmer at shaw dot ca


"Lowrider72" wrote:

If you'd like gimme a generic email address and Ill email this sucker to you

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.


what is the error message?

  #19  
Old April 5th, 2005, 09:07 PM
Lowrider72
external usenet poster
 
Posts: n/a
Default

Ya I know...but you suggested inserting a break so I did and I got that error
message

"kabaka" wrote:

ARRGHHHH!!

Loose the "_" after the Then and you'll be good to go. That's throwing off
your if.






"Lowrider72" wrote:

Opps, the one with the error is as follows...

Private_Sub cboComboBox_AfterUpdate()
If Me.cboComboBox.Value = "Suspect" Then _
Me.tester.Visible = True
End If
End Sub


"Lowrider72" wrote:

I wish it was that simple...here is the entire code..

Private_Sub cboComboBox_AfterUpdate()
If Me.cboComboBox.Value = "Suspect" Then
Me.tester.Visible = True
End If
End Sub

"kabaka" wrote:

Post all the code for the entire AfterUpdate() event where you are getting
your error. If all that you are missing is an "End if" to get this working,
I'll know that I've been at the office too long today and it's time to go
home.



"Lowrider72" wrote:

Compile error:

End If without block If

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.


what is the error message?

  #20  
Old April 5th, 2005, 09:15 PM
kabaka
external usenet poster
 
Posts: n/a
Default

Say that again... what did you do when you inserted a break? What I meant
was click on the left of the module (in the rectangle that runs beside the
code - it's offcoloured - if you did it right your line will be highlighted
and a big red dot will be beside the line) not insert a "_". That isn't a
break point.

"Lowrider72" wrote:

Ya I know...but you suggested inserting a break so I did and I got that error
message

"kabaka" wrote:

ARRGHHHH!!

Loose the "_" after the Then and you'll be good to go. That's throwing off
your if.






"Lowrider72" wrote:

Opps, the one with the error is as follows...

Private_Sub cboComboBox_AfterUpdate()
If Me.cboComboBox.Value = "Suspect" Then _
Me.tester.Visible = True
End If
End Sub


"Lowrider72" wrote:

I wish it was that simple...here is the entire code..

Private_Sub cboComboBox_AfterUpdate()
If Me.cboComboBox.Value = "Suspect" Then
Me.tester.Visible = True
End If
End Sub

"kabaka" wrote:

Post all the code for the entire AfterUpdate() event where you are getting
your error. If all that you are missing is an "End if" to get this working,
I'll know that I've been at the office too long today and it's time to go
home.



"Lowrider72" wrote:

Compile error:

End If without block If

"kabaka" wrote:



I tried inserting a break after the first line nd it gives me an error
message so I know its reading the code.


what is the error message?

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
combo question rob New Users 10 March 21st, 2005 02:05 PM
Having trouble with multi-select list box in Access brandelfly New Users 4 February 10th, 2005 07:36 PM
Can't hide a control on a subform Fred Parkinson Using Forms 3 September 9th, 2004 05:15 PM
Requery Combobox MJ Running & Setting Up Queries 7 May 25th, 2004 11:01 AM
Combo Box Control - CONTROL tab missing from FORMAT CONTROL dialogue JE McGimpsey Worksheet Functions 0 March 11th, 2004 06:47 PM


All times are GMT +1. The time now is 02:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.