Jan 1, 2010 #1 Hanss Technical User Feb 15, 2001 85 CH I have a form with two text boxes named "text1" and "where" This code will put "2" in "text1": me.text1 = 2 Question: How can I do this? Type "me.text1" into the "where" box and VB puts "2" in the "text1" box, not the "where" box. Many Thanks! Hanss Zürich
I have a form with two text boxes named "text1" and "where" This code will put "2" in "text1": me.text1 = 2 Question: How can I do this? Type "me.text1" into the "where" box and VB puts "2" in the "text1" box, not the "where" box. Many Thanks! Hanss Zürich
Jan 1, 2010 1 #2 PWise Programmer Dec 12, 2002 2,633 US if you would just type in the where box text1 Click to expand... you can run this Code: me(cstr(me.where))=2 Upvote 0 Downvote
if you would just type in the where box text1 Click to expand... you can run this Code: me(cstr(me.where))=2
Jan 1, 2010 Thread starter #3 Hanss Technical User Feb 15, 2001 85 CH THANK YOU! This works! Just one more question: What should I type in the box if *text1" is on another form? For example if "text1" was on a form called "form2" If I type: Forms![form2]![text1] into the "where" box I get an error saying that the field cannot be found. Many Thanks! Hanss Upvote 0 Downvote
THANK YOU! This works! Just one more question: What should I type in the box if *text1" is on another form? For example if "text1" was on a form called "form2" If I type: Forms![form2]![text1] into the "where" box I get an error saying that the field cannot be found. Many Thanks! Hanss
Jan 2, 2010 Thread starter #4 Hanss Technical User Feb 15, 2001 85 CH I managed to figure out the answer myself. Simply put the form info where you have the "me". Many Thanks! Hanss Upvote 0 Downvote
I managed to figure out the answer myself. Simply put the form info where you have the "me". Many Thanks! Hanss
Jan 2, 2010 #5 missinglinq Programmer Feb 9, 2002 1,914 US Also note that Where is a Reserved Word in Accesss and should be avoided as an object name. The Missinglinq Richmond, Virginia There's ALWAYS more than one way to skin a cat! Upvote 0 Downvote
Also note that Where is a Reserved Word in Accesss and should be avoided as an object name. The Missinglinq Richmond, Virginia There's ALWAYS more than one way to skin a cat!