473,406 Members | 2,343 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,406 software developers and data experts.

fill in the blank?

I would like to automatically pre-populate a cell, based on an answer in another cell. For example, if someone enters 3 for variable 7, I want variable 8 to automatically get a 4. I tried to enter it as a validation rule : [if Q7=3 then Q8=4], but it is not working (probably because I'm just making that syntax up and have no idea if it actually works in Access). Any advice anyone has would be MUCH appreciated. Thanks!!
Apr 11 '07 #1
3 1870
MMcCarthy
14,534 Expert Mod 8TB
I would like to automatically pre-populate a cell, based on an answer in another cell. For example, if someone enters 3 for variable 7, I want variable 8 to automatically get a 4. I tried to enter it as a validation rule : [if Q7=3 then Q8=4], but it is not working (probably because I'm just making that syntax up and have no idea if it actually works in Access). Any advice anyone has would be MUCH appreciated. Thanks!!
This can only be done through a form. If textbox1 represents variable 7 and textbox2 represents variable 8 then...

Create an after update event on textbox1 as follows:
Expand|Select|Wrap|Line Numbers
  1. Private Sub textbox1_AfterUpdate()
  2.    Me!textbox2 = Me!textbox1 + 1
  3. End Sub
  4.  
Mary
Apr 12 '07 #2
This can only be done through a form. If textbox1 represents variable 7 and textbox2 represents variable 8 then...

Create an after update event on textbox1 as follows:
Expand|Select|Wrap|Line Numbers
  1. Private Sub textbox1_AfterUpdate()
  2.    Me!textbox2 = Me!textbox1 + 1
  3. End Sub
  4.  
Mary

Thank you for your help!!
Apr 12 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Thank you for your help!!
You're welcome.
Apr 12 '07 #4

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

Similar topics

6
by: John J. Lee | last post by:
1. Why do I get this in my minibuffer when I do C-c C-c in a python-mode buffer containing the following valid Python code? Wrong type argument: sequencep, cpython ----START #!/usr/bin/env...
21
by: simon | last post by:
From my previous post... If I have a structure, struct sFileData { char*sSomeString1; char*sSomeString2; int iSomeNum1; int iSomeNum2;
1
by: Stephen H | last post by:
I'm a newbie to writing and running code in MS Access so the more detail the better for me when answering. Thanks. My Problem ( Or Challange , I should say ) is that I import a csv file into an...
0
by: alienstudios | last post by:
We have a table that has a multi-line per person record Here are the fields ID Gene1 Gene2 Gene3 Each person usually has two records (IE two Rows have ID 1) However in one row Gene 1 is...
30
by: Raymond Hettinger | last post by:
Proposal -------- I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: >>> map(None,...
0
by: Jean-François Michaud | last post by:
Hello, I was wondering how we could expand a block or anything else for that matter to fill all the available space in the body. I am working with XSLT generating XSL:FO and I need my "blank...
2
by: Adrien Reboisson | last post by:
I'm trying to build a basic DB explorer using C# & Visual Studio 2005. I installed SQL Server 2005 Express, created a blank project, dropped a TreeView, a ListView and a DataGridView : DB objects...
1
by: Mar72Vin | last post by:
Hi All, If a datagridview only has a few records the grid looks very untidy because there is is lot of blank space in the grid. Is there anyway to tell a datagridview to fill the entire viewable...
4
by: Terry | last post by:
I am trying to figure out if there is a way to get a regular asp.net TextBox to fill the screen, both height and width. When I drop a TextBox onto a blank asp.net page and set the height="100%",...
10
by: Cosmic programmer | last post by:
How do I make a input text box appear like a fill in the blank line. i.e. 1. is it possible to hide some of its borders and display only the bottom border? 2.to place is just above a sereies of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.