accessilliterate
Technical User
Hi
I need to use the value or data from column 2 relating to which ever row is
selected by the user within a list box on a subform as criteria for a query.
I have the following in an Access2000 database.
Main form = frmMainDataEntry
sub form = frmTrackInfoMain
List box = TracksFound
I have tried placing the following in the querys criteria box:
[Forms]![frmMainDataEntry]![frmTrackInfoMain]![TracksFound].Column(2,[Forms]
![frmMainDataEntry]![frmTrackInfoMain]![TracksFound].[ListIndex])
but that didn't work, so I tried:
[Forms]![frmMainDataEntry]![form]![frmTrackInfoMain]![TracksFound].Column(2,
[Forms]![frmMainDataEntry]![form]![frmTrackInfoMain]![TracksFound].[ListInde
x])
That also didn't work, so I tried:
[Forms]![frmTrackInfoMain]![TracksFound].Column(2,[Forms]![frmTrackInfoMain]
![TracksFound].[ListIndex])
same thing, it didnt work:
also access keeps adding brackets as shown below ?????
[Forms]![frmTrackInfoMain]![TracksFound].Column(((((((2,[Forms]![frmTrackInf
oMain]![TracksFound].[ListIndex])))))))
Each time access2k gives the same error message which is = Undefined
function '[Forms]![frmTrackInfoMain]![TracksFound].Column' in expression or
'[Forms]![frmMainDataEntry]![form]![frmTrackInfoMain]![TracksFound].Column'
in expression
Any suggestions please as this is driving me mad.
My gratefull thanks in advance.
I need to use the value or data from column 2 relating to which ever row is
selected by the user within a list box on a subform as criteria for a query.
I have the following in an Access2000 database.
Main form = frmMainDataEntry
sub form = frmTrackInfoMain
List box = TracksFound
I have tried placing the following in the querys criteria box:
[Forms]![frmMainDataEntry]![frmTrackInfoMain]![TracksFound].Column(2,[Forms]
![frmMainDataEntry]![frmTrackInfoMain]![TracksFound].[ListIndex])
but that didn't work, so I tried:
[Forms]![frmMainDataEntry]![form]![frmTrackInfoMain]![TracksFound].Column(2,
[Forms]![frmMainDataEntry]![form]![frmTrackInfoMain]![TracksFound].[ListInde
x])
That also didn't work, so I tried:
[Forms]![frmTrackInfoMain]![TracksFound].Column(2,[Forms]![frmTrackInfoMain]
![TracksFound].[ListIndex])
same thing, it didnt work:
also access keeps adding brackets as shown below ?????
[Forms]![frmTrackInfoMain]![TracksFound].Column(((((((2,[Forms]![frmTrackInf
oMain]![TracksFound].[ListIndex])))))))
Each time access2k gives the same error message which is = Undefined
function '[Forms]![frmTrackInfoMain]![TracksFound].Column' in expression or
'[Forms]![frmMainDataEntry]![form]![frmTrackInfoMain]![TracksFound].Column'
in expression
Any suggestions please as this is driving me mad.
My gratefull thanks in advance.