i have been staring at & fiddling with this for hours on end & can not figure out what is wrong
i have read related tips on this forum, all of which make believe that is has something to do with how my quotes are ordered & the data types (especially in the WHERE clause), but i do not know enough about VBA to really know how it should be .. i have tried every combination i can think of, but i still get a 'too few parameters' error, sometimes expecting 3 sometimes 4 ??
any advise/guidance on getting this to work will be greatly appreciated
Function MedianProp(tName$, fldName$, Prop$) As String
Dim MedianDB As Database
Dim ssMedian As Recordset
Dim RCount, i, x, y, OffSet As Integer
Dim EvalProp As String, PROP_ADD2 As String
Set MedianDB = CurrentDb()
EvalProp = Prop$
Set ssMedian = MedianDB.OpenRecordset("SELECT [" & fldName$ & "] FROM [" & tName$ & "] WHERE ([PROP_ADD2] = " & EvalProp & " ORDER BY [" & fldName$ & "]"
etc ..
etc ..
thank you it's a small world ...
... but i wouldn't want to paint it
i have read related tips on this forum, all of which make believe that is has something to do with how my quotes are ordered & the data types (especially in the WHERE clause), but i do not know enough about VBA to really know how it should be .. i have tried every combination i can think of, but i still get a 'too few parameters' error, sometimes expecting 3 sometimes 4 ??
any advise/guidance on getting this to work will be greatly appreciated
Function MedianProp(tName$, fldName$, Prop$) As String
Dim MedianDB As Database
Dim ssMedian As Recordset
Dim RCount, i, x, y, OffSet As Integer
Dim EvalProp As String, PROP_ADD2 As String
Set MedianDB = CurrentDb()
EvalProp = Prop$
Set ssMedian = MedianDB.OpenRecordset("SELECT [" & fldName$ & "] FROM [" & tName$ & "] WHERE ([PROP_ADD2] = " & EvalProp & " ORDER BY [" & fldName$ & "]"
etc ..
etc ..
thank you it's a small world ...
... but i wouldn't want to paint it