Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old June 27th, 2008, 08:22 PM
davjoh123@yahoo.com
Guest
 
Posts: n/a
Default Why double underscore after control name

Control name on form is "Kit #"

The afterupdate event that fires for this control calls the control
Kit__ as per following.
What is happening here?

Private Sub Kit___AfterUpdate()
ChangeKitBase Me.Kit__
End Sub
  #2  
Old June 27th, 2008, 08:23 PM
Stuart McCall
Guest
 
Posts: n/a
Default Re: Why double underscore after control name

<davjoh123@yahoo.comwrote in message
news:1ea2dc43-2fbe-4921-8492-0f2099f7d1f2@s33g2000pri.googlegroups.com...
Quote:
Control name on form is "Kit #"
>
The afterupdate event that fires for this control calls the control
Kit__ as per following.
What is happening here?
>
Private Sub Kit___AfterUpdate()
ChangeKitBase Me.Kit__
End Sub
The behaviour you are seeing is a consequence of using punctuation
characters in control names. Change the name of the control (plus any
references to it) and all will be well.


  #3  
Old June 27th, 2008, 08:23 PM
Stuart McCall
Guest
 
Posts: n/a
Default Re: Why double underscore after control name

"Stuart McCall" <smccall@myunrealbox.comwrote in message
news:fukiin$ni0$1$8302bc10@news.demon.co.uk...
Quote:
<davjoh123@yahoo.comwrote in message
news:1ea2dc43-2fbe-4921-8492-0f2099f7d1f2@s33g2000pri.googlegroups.com...
Quote:
>Control name on form is "Kit #"
>>
>The afterupdate event that fires for this control calls the control
>Kit__ as per following.
>What is happening here?
>>
>Private Sub Kit___AfterUpdate()
> ChangeKitBase Me.Kit__
>End Sub
>
The behaviour you are seeing is a consequence of using punctuation
characters in control names. Change the name of the control (plus any
references to it) and all will be well.
I just realised I didn't actually answer your question. The reason Access
changes the name is because special characters aren't allowed in procedure
names.


  #4  
Old June 27th, 2008, 08:23 PM
Linq Adams via AccessMonster.com
Guest
 
Posts: n/a
Default Re: Why double underscore after control name

And the # is the character Access uses to delimit literal dates.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via http://www.accessmonster.com

  #5  
Old June 27th, 2008, 08:23 PM
Salad
Guest
 
Posts: n/a
Default Re: Why double underscore after control name

Linq Adams via AccessMonster.com wrote:
Quote:
And the # is the character Access uses to delimit literal dates.
>
You can concatenate "Display This#http://www.nowhere.com" to create a
hyperlink. I think it's a shame that the # character was used as people
may use the # sign to denote a number in the display part of the hyperlink.
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles