To include variables you use '"& Somthing &"' for a string and "& Somthing &" for an integer.
Your data type mismatch means that you where trying to compare an integer field with a string value or vice versa. You got this error because you had ID = '1' this means it's string ID = 1 would be an integer.
Just to clarify big_al's reply: your statement should look like this ...
"Select * FROM program, platformlink, platform WHERE program.programID = platformlink.programID AND platform.platformID = platformlink.platformid AND program.programID = " & id
assuming id is numeric. If it was a string, you would need:
"Select * FROM program, platformlink, platform WHERE program.programID = platformlink.programID AND platform.platformID = platformlink.platformid AND program.programID = '" & id & "'"
Bookmarks