SELECT [New Site Address].[code no], [New Site Address].[Site RI no], [New Site Address].[site address], Left([site address],InStr([site address],[name_eng])-2) AS [front words], InStr([front words],",") AS comma, savenumer2(Replace((Right([front words],Len([front words])-comma)),"."," ")) AS [last words], iif([last words] = from_no, 1, 0) as verify, TPU.name_eng, TPU.from_no, TPU.to_no, TPU.tpu, TPU.sb, TPU.plot
FROM [New Site Address], TPU
WHERE ((([New Site Address].[site address]) Like "*" & [name_eng] & "*"))
ORDER BY [New Site Address].[code no];
site address is the address of the site (eg. 2-20 PALM STREET, FLAT A, 4/F & 5/F K.I.L. 10988)
and i want to extract the first street number (2)
if it is equal to the from_no, verify gives out 1.
In the next query, i want to extract all verify = 1 record -->
Select *
From [New Site Address Search]
Where Verify = 1;
But it says I have a invalid procedure call.
How to solve the problem?
(New Site Address Search can run successfully)
FROM [New Site Address], TPU
WHERE ((([New Site Address].[site address]) Like "*" & [name_eng] & "*"))
ORDER BY [New Site Address].[code no];
site address is the address of the site (eg. 2-20 PALM STREET, FLAT A, 4/F & 5/F K.I.L. 10988)
and i want to extract the first street number (2)
if it is equal to the from_no, verify gives out 1.
In the next query, i want to extract all verify = 1 record -->
Select *
From [New Site Address Search]
Where Verify = 1;
But it says I have a invalid procedure call.
How to solve the problem?
(New Site Address Search can run successfully)
Last edited: