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  

Syntax



 
 
Thread Tools Display Modes
  #1  
Old December 24th, 2008, 04:23 PM posted to microsoft.public.access.gettingstarted
evan
external usenet poster
 
Posts: 128
Default Syntax

Although I've taken 2 Access courses, have Cashman's book and read countless
posts; I'm still uncertain "wording" & syntax. I've created a form with a
comboBox and subform. I named:
the form "AllCountry",
the comboBox "ComboCN"
and the form used as the subform "BrSch"

In writing code should I use:
"cboComboCN" to refer to the combobox?
"Form!AllCountry" to refer to the Form?
"Form!AllCountry!Form!BrSch" to refer to the subForm?

And although I'm using the me. syntax/statement in my code I don't fully
understand it.

Thanks so much for any help yo can offer me.

Evan


  #2  
Old December 24th, 2008, 04:35 PM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Syntax

Evan

"cbo" is a prefix you can use in naming a control. You don't need to use it
when you refer to something that doesn't include that prefix in its name.
One way to think of it might be if I referred to you as BobEvan. That isn't
your name, and few could figure out I meant you. Access is considerably
less intelligent and much more literal.

If you tell Access to look for something named "cboComboCN", it will look
ONLY for something with that name.

Regards

Jeff Boyce
Microsoft Office/Access MVP


"Evan" wrote in message
...
Although I've taken 2 Access courses, have Cashman's book and read
countless
posts; I'm still uncertain "wording" & syntax. I've created a form
with a
comboBox and subform. I named:
the form "AllCountry",
the comboBox "ComboCN"
and the form used as the subform "BrSch"

In writing code should I use:
"cboComboCN" to refer to the combobox?
"Form!AllCountry" to refer to the Form?
"Form!AllCountry!Form!BrSch" to refer to the subForm?

And although I'm using the me. syntax/statement in my code I don't fully
understand it.

Thanks so much for any help yo can offer me.

Evan




  #3  
Old December 24th, 2008, 06:37 PM posted to microsoft.public.access.gettingstarted
Philip Herlihy
external usenet poster
 
Posts: 292
Default Syntax

Evan wrote:
Although I've taken 2 Access courses, have Cashman's book and read countless
posts; I'm still uncertain "wording" & syntax. I've created a form with a
comboBox and subform. I named:
the form "AllCountry",
the comboBox "ComboCN"
and the form used as the subform "BrSch"

In writing code should I use:
"cboComboCN" to refer to the combobox?
"Form!AllCountry" to refer to the Form?
"Form!AllCountry!Form!BrSch" to refer to the subForm?

And although I'm using the me. syntax/statement in my code I don't fully
understand it.

Thanks so much for any help yo can offer me.

Evan



I've found this reference very useful:

http://www.mvps.org/access/forms/frm0031.htm

Phil, London
 




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


All times are GMT +1. The time now is 09:47 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.