开发者

Simple sql query problem

开发者 https://www.devze.com 2023-03-01 01:08 出处:网络
Hi I have this query in ms access which is somehow not working. All I need to do is to pull out donator name from donator table with the id of volunteer. But I need to get user input, volunteer name a

Hi I have this query in ms access which is somehow not working. All I need to do is to pull out donator name from donator table with the id of volunteer. But I need to get user input, volunteer name and pull out the related volunteer first. Please help.

SELECT volunteer.id, volunteer.name, donator.* FROM volu开发者_如何学Pythonnteer, donator WHERE Volunteer.id = Donator.vid AND Volunteer.name = Forms!frm5!Combo2;


Check your case on Database names. For instance, you reference volunteer.name and Volunteer.id. In some DB's, fields are case sensitive.

Also, you'd want to quote your volunteer name field.

0

精彩评论

暂无评论...
验证码 换一张
取 消