I have a similar issue. I have a table with ID and Ethnicity and have a combo box on my form where I'd like the user to see the text ethnicity to select from, but then have the number value associated with it pushed into the table. How would I do that?
If I do a separate update query for every value (i.e. one for HeartAttackDOD, one for AnginaDOD, one for IrregularHeartDOD, and so on) it works as it should, but when they are all combined into one update query is when it doesn't work.
Randy,
Please ignore my last post. I fixed the data type mismatch problem.
I tried setting to NULL instead of " ", but it is setting HeartAttackDOD = NULL even when there is a value of 1 in HeartAttack.
This is a problem because a value of 1 means that the person did have a heart attack...
Thanks, I removed the quotes from around the 2 since it isn't a string value, but it is still setting HeartAttackDOD = " " when there is a value of 1 in HeartAttack.
UPDATE tablename SET tablename.HeartAttackDOD = " "
WHERE(((tablename.HeartAttackDOD)=#1/1/2001#) AND ((tablename.HeartAttack)=2));
I have an Access update query that is not working.
Here's my SQL:
UPDATE tablename SET tablename.HeartAttackDOD = " "
WHERE(((tablename.HeartAttackDOD)=#1/1/2001#) AND ((tablename.HeartAttack)="2"));
It sets HeartAttackDOD = " " even if HeartAttack = "1" and I only want it to set...
I have a report built on a query that combines data from 2 tables Body_Comp_Data and RMR_Data. There are 3 values for SBP and DBP and I have written code to average the SBP and DBP values for each table and have those values dumped into BC_AvgSBP, BC_AvgDBP, RMR_AvgSBP, and RMR_AvgDBP...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.