ChickenHawk
Programmer
Hello, I'm sure this will turn out to be basic but it's got me stumped. I've been playing with it all weekend. I've pared it down to the simplest example I can that fails so hopefully it'll be clear to you. I know what the example is doing is somewhat redundant ... it's just an example.
This consistently fails with (of all things!) a compile error with ambiguous name 'Read_Click'. and the [Comments] column of my result table is populated with #Error.
Anyway, this is long already. Any help would be appreciated! Thanks ... ChickenHawk
Table: [Status Control]
Status CHAR(30) 'contains text status codes
Actve Boolean 'is this status desired for this report
SQL:
SELECT [Status], TestFunc([Active],[Status]) as [Comments]
FROM [Status Control]
Function:
Public Function TestFunc(Active As Boolean, AType As String) As String
If Active = True Then
TestFunc = "** Active **"
Else
TestFunc = "** Not Active **" + AType
End If
End Function
This consistently fails with (of all things!) a compile error with ambiguous name 'Read_Click'. and the [Comments] column of my result table is populated with #Error.
Anyway, this is long already. Any help would be appreciated! Thanks ... ChickenHawk
Table: [Status Control]
Status CHAR(30) 'contains text status codes
Actve Boolean 'is this status desired for this report
SQL:
SELECT [Status], TestFunc([Active],[Status]) as [Comments]
FROM [Status Control]
Function:
Public Function TestFunc(Active As Boolean, AType As String) As String
If Active = True Then
TestFunc = "** Active **"
Else
TestFunc = "** Not Active **" + AType
End If
End Function