问题
I'm trying to run this query:
SELECT tbl_G_ov_wta.PK_G, qry_performPrepElo_wta.PK_G, qry_performPrepElo_wta.ID1_ocStake
FROM tbl_G_ov_wta INNER JOIN qry_performPrepElo_wta ON tbl_G_ov_wta.PK_G = qry_performPrepElo_wta.PK_G
For some reason it won't pull through the values of qry_performPrepElo_wta.ID1_ocStake
. Worth mentioning that PK_G
is a common primary key. In playing around with this I've found that adding in criteria as follows fixes the issue:
SELECT tbl_G_ov_wta.PK_G, qry_performPrepElo_wta.PK_G, qry_performPrepElo_wta.ID1_ocStake
FROM tbl_G_ov_wta INNER JOIN qry_performPrepElo_wta ON tbl_G_ov_wta.PK_G = qry_performPrepElo_wta.PK_G
WHERE (((tbl_G_ov_wta.PK_G) Between 1 And 1000000));
Any ideas on why this might be?
来源:https://stackoverflow.com/questions/58525346/why-are-my-records-blank-in-my-access-query