D
Daveo
Hi there,
When I run the following code I get a "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]).Fields(0)
I'm confused because I also have the following code in the line
preceding it, which works fine:
strAssetCat = CurrentDb.OpenRecordset("SELECT
LU_assetCategories.category" & _
" FROM LU_assetCategories WHERE LU_assetCategories.assetCategoryID =" &
Me.assetCat).Fields(0)
Both statements are the same, except for table and field name changes
(I've double checked them).
Can anyone shed any light please?
Many thanks - David
When I run the following code I get a "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]).Fields(0)
I'm confused because I also have the following code in the line
preceding it, which works fine:
strAssetCat = CurrentDb.OpenRecordset("SELECT
LU_assetCategories.category" & _
" FROM LU_assetCategories WHERE LU_assetCategories.assetCategoryID =" &
Me.assetCat).Fields(0)
Both statements are the same, except for table and field name changes
(I've double checked them).
Can anyone shed any light please?
Many thanks - David