Hi There
I've written some SQL that selects a particular "Type of Project" the SQL is valid and works. Butr I'm not sure how to assign the outcome to an unbound textbox on a form. I'm thinking its the RunSQL command but I'm confused as to how.
Can any one tell me how I do this? or has anyone done it?
Many thanks
Lex
I've written some SQL that selects a particular "Type of Project" the SQL is valid and works. Butr I'm not sure how to assign the outcome to an unbound textbox on a form. I'm thinking its the RunSQL command but I'm confused as to how.
Code:
MySQL = "SELECT ProjectDetails.ProjectType" & _
" FROM ProjectDetails INNER JOIN TeamMemberInformation ON ProjectDetails.ProjectDetailsID" & _
" = TeamMemberInformation.ProjectDetailsID WHERE "
MyWhere = "(((TeamMemberInformation.ProjectDetailsID) = " & Forms!TeamMember!ProjectDetailsID & " ))"
MyGroup = " GROUP BY ProjectDetails.ProjectType, TeamMemberInformation.ProjectDetailsID;"
MySQL = MySQL & MyWhere & MyGroup
Can any one tell me how I do this? or has anyone done it?
Many thanks
Lex