atadbitslow
Programmer
Hi,
I have two subforms on a form and I have VBA code that compares the fields on one subform to the other subform. If the fields don't match, I have a button for the user to click on to update the data in the field that doesn't match. It's basically:
If [subform1]![fielda]<>[subform2]![fielda] then
me.updatebtn.visible=true
end if
This works fine, unless [subform1]![fielda] has data and [subform2]![fielda] does not have data. It doesn't recognize that they don't match. I'm pretty sure this is dumb question, but why is that? Is there a way to get it to recognize they don't match?
Thank you!
I have two subforms on a form and I have VBA code that compares the fields on one subform to the other subform. If the fields don't match, I have a button for the user to click on to update the data in the field that doesn't match. It's basically:
If [subform1]![fielda]<>[subform2]![fielda] then
me.updatebtn.visible=true
end if
This works fine, unless [subform1]![fielda] has data and [subform2]![fielda] does not have data. It doesn't recognize that they don't match. I'm pretty sure this is dumb question, but why is that? Is there a way to get it to recognize they don't match?
Thank you!