D
Daveo
Hi there,
Can anyone tell me what is wrong with this bit of code.? (I hope it's
pasted OK). I get an error message saying Run-time error '3061'"Too few
parameters. Expected 1"
strAssetType = CurrentDb.OpenRecordset("SELECT LU_assetTypes.type" & _
" FROM LU_assetTypes WHERE LU_assetType.assetTypeID = " &
Me.[assetType].Value).Fields(0)
Ive double checked all the field names etc.
What confuses me is that I have the following bit of code in the
preceding line which works with no problems:
strAssetCat = CurrentDb.OpenRecordset("SELECT
LU_assetCategories.category" & _
" FROM LU_assetCategories WHERE LU_assetCategories.assetCategoryID =" &
Me.assetCat).Fields(0)
It's exactly the same but seems to work when the other one doesn't!.
Thanks - David
Can anyone tell me what is wrong with this bit of code.? (I hope it's
pasted OK). I get an error message saying Run-time error '3061'"Too few
parameters. Expected 1"
strAssetType = CurrentDb.OpenRecordset("SELECT LU_assetTypes.type" & _
" FROM LU_assetTypes WHERE LU_assetType.assetTypeID = " &
Me.[assetType].Value).Fields(0)
Ive double checked all the field names etc.
What confuses me is that I have the following bit of code in the
preceding line which works with no problems:
strAssetCat = CurrentDb.OpenRecordset("SELECT
LU_assetCategories.category" & _
" FROM LU_assetCategories WHERE LU_assetCategories.assetCategoryID =" &
Me.assetCat).Fields(0)
It's exactly the same but seems to work when the other one doesn't!.
Thanks - David