Quote:
quote:Originally posted by anukagni
Ok but what i did is the combo box is having the source data from an table and in the Query i have given the criteria as [Form]![From Name].[comboboxname]
with ur explanation i have put the table name in the place of tblsub table .am i right i ill try and reply u..and what should i do when i got two combo box to select to get the read only query view?
thanks for ur attentation mc..
Learn as you can..
------------------------
pap...
|
I have tried but i got the runtime time error..
iam doubting on the sSQL statement which i entered
U have given the statement as
sSQL = SELECT*FROM tblSubtable WHERE [Name of the EquipmentID] = " &iPK
But the problem is iam not using any subtable and any Primary Keys..
I am usind an table for the source and an query for the report in the query view.
So I entered as
sSQL = SELECT*FROM Sourcetable WHERE the [Nameof the EQuipment field]"& iPK
But i got an error as
# Run time Error '-2147467259(80004005)': #
# Metho 'Open' of object'_Recordset' failed #
its headaching!
Learn as you can..
------------------------
pap...