473,386 Members | 1,606 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,386 software developers and data experts.

syntax question

WHERE (tblTxJournal.TxAcct_ID IN (SELECT TxAcct_ID FROM tblTxAcct)) AND
(DatePart("q",[TxDate])=2) AND
(Year([TxDate])=[Forms]![frmMain]![frmTo]![cbxYear_To]) ...

is this okay, or should the last part be:

[Forms]![frmMain]![frmTo].[Form]![cbxYear_To])

Thanks in advance...

Nov 12 '05 #1
3 1447
Actually, either will probably work, since you are using the ! instead of a period.

The [frmTo] part needs to be the name of the control on the main form that holds the
subform, not the name of the subform itself.

--
Wayne Morgan
"deko" <dj****@hotmail.com> wrote in message
news:Me***************@newssvr27.news.prodigy.com. ..
WHERE (tblTxJournal.TxAcct_ID IN (SELECT TxAcct_ID FROM tblTxAcct)) AND
(DatePart("q",[TxDate])=2) AND
(Year([TxDate])=[Forms]![frmMain]![frmTo]![cbxYear_To]) ...

is this okay, or should the last part be:

[Forms]![frmMain]![frmTo].[Form]![cbxYear_To])

Thanks in advance...

Nov 12 '05 #2
From what I've read elsewhere, [Forms]![frmMain]![frmTo].[Form]![cbxYear_To]
is the "full path" - it seems this is the more reliable way to go... I need
a rule to follow, so this might as well be it.

thanks for the reply!

"Wayne Morgan" <co***************************@hotmail.com> wrote in message
news:nh******************@newssvr33.news.prodigy.c om...
Actually, either will probably work, since you are using the ! instead of a period.
The [frmTo] part needs to be the name of the control on the main form that holds the subform, not the name of the subform itself.

--
Wayne Morgan
"deko" <dj****@hotmail.com> wrote in message
news:Me***************@newssvr27.news.prodigy.com. ..
WHERE (tblTxJournal.TxAcct_ID IN (SELECT TxAcct_ID FROM tblTxAcct)) AND
(DatePart("q",[TxDate])=2) AND
(Year([TxDate])=[Forms]![frmMain]![frmTo]![cbxYear_To]) ...

is this okay, or should the last part be:

[Forms]![frmMain]![frmTo].[Form]![cbxYear_To])

Thanks in advance...


Nov 12 '05 #3
You won't go wrong by spelling it out. The other way you have to know what
the defaults are.

--
Wayne Morgan
"deko" <dj****@hotmail.com> wrote in message
news:vK****************@newssvr25.news.prodigy.com ...
From what I've read elsewhere, [Forms]![frmMain]![frmTo].[Form]![cbxYear_To] is the "full path" - it seems this is the more reliable way to go... I need a rule to follow, so this might as well be it.

Nov 12 '05 #4

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

Similar topics

2
by: Trimbitas Sorin | last post by:
Hello I have a simple syntax question : What does the following line mean: 1: %checkType; ?? I know that @test="" is an array and $test="" is a simple variable. Thank you With best regards...
3
by: Mike | last post by:
I have done this before in VB but I am realitively new to C#. I have a datagrid where the first bound column represents the identity column from the table. I have designated that first bound column...
2
by: Colin McGuire | last post by:
Sorry to ask a simple question on syntax but the line inside the subroutine "assignBitmapArray" won't compile giving me an "Expression Expected" error. What is the correct syntax to initialize an...
5
by: pwsmeister | last post by:
I'm fairly new to javascript, my take on the below code is that it is creating a array called event and populating it with 3 functions( add, remove and DOMit). Is my take on this code correct? ...
11
by: deppy_3 | last post by:
Hi! The syntax of fputs() is similar with the syntax of fgets(); For example if we have:fgets(str,maxlen,stdin) which is the syntax of the fputs();
12
by: Yusuf | last post by:
I'm sorry for the second post in as many hours, and both about structs. The code below compiles. The variables test1 and test2 are structures of datatype teststruct1 and teststruct2. The size of...
2
by: JJA | last post by:
I'm looking at some code I do not understand: var icons = new Array(); icons = new GIcon(); icons.image = "somefilename.png"; I read this as an array of icons is being built. An element of...
11
by: Frankie | last post by:
I have been learning about the AsyncOperation class and came across this code (sorry I got it a few days ago and don't remember the specific link). Anyway, I am wondering what the tilde (~) on...
2
by: movieking81 | last post by:
Hello All, I have a simply syntax question. I'm new to PHP, but I have worked with ASP for years. Can you reference a database field on an html page with PHP the same way you can with ASP. For...
6
by: Daniel | last post by:
I hope this question is OK for this list. I've downloaded Rpyc and placed it in my site packages dir. On some machines it works fine, on others not so much. Here is one error I get when I try...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.