G
Guest
When creating a string that will be printing to a flat file, in some
instances I nee to add criteria. In the following example, I'm trying to
replace the P with an I for the flat file only.
What I'd like string result to look like:
SAS|1|20050817|I|
Code would look like:
SAS = "SAS|1|" & Format$(CurrentDate, "yyyymmdd") & "|"
If rs.fields("type") = "P" Then
"I"
Else
rs.fields("type")
Endif
I can include more code if this doesn't make sense.
instances I nee to add criteria. In the following example, I'm trying to
replace the P with an I for the flat file only.
What I'd like string result to look like:
SAS|1|20050817|I|
Code would look like:
SAS = "SAS|1|" & Format$(CurrentDate, "yyyymmdd") & "|"
If rs.fields("type") = "P" Then
"I"
Else
rs.fields("type")
Endif
I can include more code if this doesn't make sense.