×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Need help with .adp report recordsource

Need help with .adp report recordsource

Need help with .adp report recordsource

(OP)
I am trying to read a few columns from a SQL table into a MSAccess Project report. I only need a simple recordsource select statement for the report's recordsource, but I need a where criteria that is an integer on a form in the project that is always open. However, I cannot get the syntax right for the where clause in my SQL recordsource select statement. I am trying:

SELECT comments_id, participant_id, comment_type_cd, comments, created_by_userid, created_ts
FROM dbo.XX_COMMENTS
WHERE participant_id = Forms ! frmXXX_YYY_MainData ! [txtParticipantID]
ORDER BY comments_id DESC

but I keep getting the error that the ! character is not valid. Anyone know what the syntax would be for my where clause to reference a field on my form as a criteria? Thanks for any help you cn offer.

RE: Need help with .adp report recordsource

Try Forms!frmXXX_YYY_MainData.[txtParticipantID]

Beir bua agus beannacht!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close