473,383 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Auto filling a text box?

Hello! I have three text boxes text1, text2 and text3. Text3 should be filled based on either text1 or text2. If text1 has a value, then text3 should be the same as text1. If text1 is blank, then text3 should be the same as text2. How do I accomplish this?
Aug 14 '15 #1

✓ answered by Seth Schrock

The simplest method would be to change the control source for Text3 to be
Expand|Select|Wrap|Line Numbers
  1. =IIf(Forms!frmFormName!Text1 & "" = ""
  2.    , Forms!frmFormName!Text2
  3.    , Forms!frmFormName!Text1)

2 1005
Seth Schrock
2,965 Expert 2GB
The simplest method would be to change the control source for Text3 to be
Expand|Select|Wrap|Line Numbers
  1. =IIf(Forms!frmFormName!Text1 & "" = ""
  2.    , Forms!frmFormName!Text2
  3.    , Forms!frmFormName!Text1)
Aug 14 '15 #2
Works perfectly. THANK YOU!!!
Aug 14 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gilgamesh | last post by:
Hi there, I'm trying to implement auto-soloing text on a windows form to display news to the user. I would like to give the user the ability to stop scrolling of the text, and then resume. Is...
0
by: Tony A. | last post by:
I'm using VB 2005 with MS Access for as the database. I have a table (tblItem) that has two columns, ItemNum (key field) and ItemDescription. I also have a second table (tblOrdersDetail), this...
1
by: rocksoft | last post by:
Hi, i have devloping web application in Asp.net and c#, i have used ajax to achieve the auto complete text box, my company using visual studio 2003, ajax auto complete text box...
1
by: arti | last post by:
My Auto Suggest Text Box- (in ASP.Net using AJAX) works fine on my Local machine but not when the application runs on server. WHat happened?
0
by: gobblegob | last post by:
Well i cannont remember where i picked this code up, but i have seen it asked for in many forums, Many times so i thought i'd add it here (Since this is my favourite forum). Auto scroll text in...
8
by: logicbloke | last post by:
Hello, All the browsers I tested are filling two fields that aren't for logging in, both have different names from the ones on the login form, and eventhough, the browsers fill them, I have read...
11
by: slenish | last post by:
I have a new problem that I am playing with involving the combo boxes. Alright now im going to try to explain this as best I can and hope (NeoPa) doesnt notice if I mess up :D This is going to be...
13
by: Ever Improving | last post by:
I have tried these and multiple combination of codes (from multiple websites) and non of them work for this seemingly simple task. I am using Access 2007. I have 3 fields I would like to...
7
by: Darla123 | last post by:
Hi Everyone. I have a text box Text1 that needs to be auto filled from text box Text2 on form close. I've tried adding "Me.Text1.Value = Me.Text2.Value" to the code under form close, but I get an...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.