boywonder381 wrote
The issue is that it does not generate an error nor does it show the data from the query by using the ?.
It is very hard to help with such programming errors when the program/script executes without any complaint but does not do what you want.
It is probably better to check with a friend or colleague and have a second look on the program/script. Sometimes, a fresh look can help detect errors that went unnoticed by the original developer.