Hello all,
Now here's a head-scratcher... Whenever I call the select string below, no rows are returned:
[navy]
locRows = Me.GMDB2DataSet.AreaNames.Select("AreaCode = '" & CInt(srcRow.Item("Komm_nr")) & "' AND AreaCodeStandard = 1")
[/navy]
However, when I simply write:
[navy]
locRows = Me.GMDB2DataSet.AreaNames.Select("AreaCode = '765' AND AreaCodeStandard = 1")
[/navy]
Then it does return the rows I want to select. But the select strings are exactly the same! (I know because I checked) Is there some secret law forbidding the use of composite strings in select methods? I am stumped...
Fedor Steeman
Geological Museum Copenhagen
Denmark
Now here's a head-scratcher... Whenever I call the select string below, no rows are returned:
[navy]
locRows = Me.GMDB2DataSet.AreaNames.Select("AreaCode = '" & CInt(srcRow.Item("Komm_nr")) & "' AND AreaCodeStandard = 1")
[/navy]
However, when I simply write:
[navy]
locRows = Me.GMDB2DataSet.AreaNames.Select("AreaCode = '765' AND AreaCodeStandard = 1")
[/navy]
Then it does return the rows I want to select. But the select strings are exactly the same! (I know because I checked) Is there some secret law forbidding the use of composite strings in select methods? I am stumped...
Fedor Steeman
Geological Museum Copenhagen
Denmark