I've used VBA before, but not to the extent that I'm looking at now.
I've been asked to do some modifications to a database that a former
employee created. She built all the forms with code, so I've got to
struggle to understand what she did before I can get on with the
modifications. In the code, she declares, sets and resets switches.
Can anyone tell me what switches are? Below are some examples of what
she wrote. Thank you in advance for your help.

Those are simply boolean variables that you can create and use for any purpose.

To expand on this... for any purpose for which you need a Yes/No value. They
are often used to control the logic of code execution.

And, you have to determine, in context, what they are used for if there are
no comments explaining it. Obviously, there is code omitted, because without
something else, what you show would be nonsensical.

And, you have to determine, in context, what they are used for if there are no comments explaining it. Obviously, there is code omitted, because without something else, what you show would be nonsensical.

Maybe they're Flip-Flop switches. :-)

Here's TMGATMI (too much guesswork and too much information):

Larry's correct. Assuming you didn't have her write any documentation
regarding the software design you'll have to use the names of the
variables along with how they are used in the context of code to see
what they are used for. A boolean switch can be thought of as a
True/False signal (or flag) that something has or hasn't happened. It
looks like the switches are for search/edit forms. Found_Sw seems to
indicate whether or not a record was found. Valid_SW could be related
to proper/improper edits after the record is found. Valid_Entry could
indicate whether or not the edits got saved to the table. Go by what
conditions in code cause the values to change. When programming a
boolean switch in general, you usually decide first whether an initial
value of True or False will result in better code. The default for
input validation is usually False so that if any condition is not met
you can simply exit early without having to set a value. I think you
would save time and possibly money by hiring some short-term
programming help until you are over the initial hurdles, especially if
you have a lot of determination.

And, you have to determine, in context, what they are used for if there are no comments explaining it. Obviously, there is code omitted, because without something else, what you show would be nonsensical.

Maybe they're Flip-Flop switches. :-)

Here's TMGATMI (too much guesswork and too much information):

Larry's correct. Assuming you didn't have her write any documentation regarding the software design you'll have to use the names of the variables along with how they are used in the context of code to see what they are used for. A boolean switch can be thought of as a True/False signal (or flag) that something has or hasn't happened. It looks like the switches are for search/edit forms. Found_Sw seems to indicate whether or not a record was found. Valid_SW could be related to proper/improper edits after the record is found. Valid_Entry could indicate whether or not the edits got saved to the table. Go by what conditions in code cause the values to change. When programming a boolean switch in general, you usually decide first whether an initial value of True or False will result in better code. The default for input validation is usually False so that if any condition is not met you can simply exit early without having to set a value. I think you would save time and possibly money by hiring some short-term programming help until you are over the initial hurdles, especially if you have a lot of determination.