Gasman
Enthusiastic Amateur
- Local time
- Today, 02:56
- Joined
- Sep 21, 2011
- Messages
- 15,994
Hi all,
Is there any reason anyone can think of as to why you would NOT use Option Explicit?
The lack of doing so came back to bite this user big time. I did not spot although inadvertently I was on the right track.
Solution is on page 2. Unfortunately that site does not have post numbers.
I have mentioned that thread in another post whereby that user was using a method of setting recordset fields unknown to me.
Is there any reason anyone can think of as to why you would NOT use Option Explicit?
The lack of doing so came back to bite this user big time. I did not spot although inadvertently I was on the right track.
Solution is on page 2. Unfortunately that site does not have post numbers.
I have mentioned that thread in another post whereby that user was using a method of setting recordset fields unknown to me.
Solved - Virtual link between variable declared as field and recordset field?
No sure how to call the title TBH, so will try and explain. In attempting to help a user on another forum I find he is doing this. Declaring a variable as a Field called Fld12 Opening a recordset and setting that Field variable to a recordset field. He then issues an rs.Edit He then overwrites...
www.access-programmers.co.uk