Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2005

Tip: Looking for answers? Try searching our database.

Undefined Function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RayH - 08 Nov 2005 01:45 GMT
I have created a form named frmcommbysource with 3 controls.  First control
is a combo box named cbosource that has two fields, ID and name.  The other
two controls are both date/time picker controls called dtstart and dtend
respectively.  I then created the first of 3 queries used for a summary
report.  Two of the fields in this query are Tour_date and name.  I put the
following into the Tour_date criteria:  "
Between forms!frmcommbysource.dtstart and forms!frmcommbysource.dtend.  I
then created 2 parameters forms!frmcommbysource.dtstart date/time and
forms!frmcommbysource.dtend date/time.  I then put a button on the form and
added the following code in the click event:
dim stDocName as string

stDocName = "qryCommissionSummary"
docmd.OpenQuery stDocName, acNormal, acEdit

When I enter the dates and push the button the query runs ok.

I then added the following to the [name] field criteria:
forms!frmcommbysource.cbosource.column(1)  
-- Since column 0 is the id and column 1 is the name.  
Then I added the following to the parameters:
forms!frmcommbysource.cbosource.column(1)  text

when I run the frmcommbysource and pick a name from the combo, then dates
and hit the button I get the following error :
Undefined function forms!frmcommbysource.cbosource.column... in expression

I have checked for missing references and there are none.

Thanks for the help.

Ray
Van T. Dinh - 08 Nov 2005 01:56 GMT
Try:

Eval("Forms!frmcommbysource.cbosource.Column(1)")

Signature

HTH
Van T. Dinh
MVP (Access)

>I have created a form named frmcommbysource with 3 controls.  First control
> is a combo box named cbosource that has two fields, ID and name.  The
[quoted text clipped - 31 lines]
>
> Ray
RayH - 08 Nov 2005 02:16 GMT
Wow!  That has to be the fastest answer I have ever received.  Worked like a
charm.  Thanks for the help

> Try:
>
[quoted text clipped - 35 lines]
> >
> > Ray
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.