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

Form Data Entry

8
Can someone please give me advice on how to do the following in a form?

In my form I have a have the user enter a 1 or a 2 in a box for the first record.

I would like to know how I can make every following record contain the number that the user entered for the first record without having the user enter a 1 or 2 ever again.

I appreciate your help
-Yan
Mar 16 '07 #1
6 1423
MMcCarthy
14,534 Expert Mod 8TB
Hi Yan

If the textbox name was txtValue then in the AfterUpdate event of the textbox you would need to put the value in the Default value of the textbox as follows:
Expand|Select|Wrap|Line Numbers
  1. Private Sub txtValue_AfterUpdate()
  2.  
  3.    Me!txtValue.DefaultValue = Me!txtValue.Value
  4.  
  5. End Sub
  6.  
Mary
Mar 17 '07 #2
ye2127
8
Hi Mary,
Can you please clarify? I wrote the code but the values in the text box of the subsequent records to not reflect the first value that was entered. Thank you for you help.
Mar 20 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Hi Mary,
Can you please clarify? I wrote the code but the values in the text box of the subsequent records to not reflect the first value that was entered. Thank you for you help.
It will only work if the subsequent records are new records. If not then you will need something more complicated.
Mar 20 '07 #4
NeoPa
32,556 Expert Mod 16PB
If you can say more clearly exactly what you want then we will see what we can do for you.
Mar 20 '07 #5
brynne
13
Can someone please give me advice on how to do the following in a form?

In my form I have a have the user enter a 1 or a 2 in a box for the first record.

I would like to know how I can make every following record contain the number that the user entered for the first record without having the user enter a 1 or 2 ever again.

I appreciate your help
-Yan
Sounds like a relationship problem. Without telling us a bit more about the data that you are trying to record, it is a bit difficult to advise you. Are you familiar with the concept of 'normalisation'? It may be that you need extra/intermediate tables to record the data correctly. You can link all the necessary tables together using a query, then create a form from the query.

B
Mar 21 '07 #6
MMcCarthy
14,534 Expert Mod 8TB
Sounds like a relationship problem. Without telling us a bit more about the data that you are trying to record, it is a bit difficult to advise you. Are you familiar with the concept of 'normalisation'? It may be that you need extra/intermediate tables to record the data correctly. You can link all the necessary tables together using a query, then create a form from the query.

B
B is right.

Have a look at this tutorial and see what you think?

Normalisation and Table structures

Mary
Mar 21 '07 #7

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

Similar topics

1
by: LRD | last post by:
Form not refreshing after autopostback unless keyboard or mouse move Hi, We created several new ASP.NET C# forms for our intranet. In each form we use panels for different sections of the...
2
by: Iain Miller | last post by:
Struggling a bit here & would be grateful for any help. I have a table which has a list of people in it. Each person has a unique ID automatically allocated by Access but also belongs to one of 5...
15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
4
by: Sean Connery | last post by:
I have a Microsoft UI Process Application Block that is controlling child forms in an MDI parent container. The views node in the app.config file has been set to stayOpen=false. Because there...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
2
by: filbennett | last post by:
Hi Everyone, I'm generally unfamiliar with Access form design, but have programmed Cold Fusion applications for a couple of years. I'd like to build a data entry form in Access that allows the...
6
by: Brian Blair | last post by:
I have created a input form that enters a number in a talble. If I open the form again it enters a new record instead of editing the existing record. It seems like it should be very basic but I...
3
by: bosmatthews | last post by:
I have a main form with a subform and a second subform nested to the first subform. The data entry property for all three forms (main, subform and sub-subform) is set to "yes" because I am intending...
0
by: jvitti | last post by:
I recently upgraded from Access 2000 to Access 2007 and I am having trouble with moving the focus from 1 form to another. While doing data entry if a similar claim is found the claim view form...
3
by: Salad | last post by:
Using A97, SP2, most current jet35. I have a search form. The op enters an id to search/find. If found, a data entry form is presented for that id. This form has 7 or 8 combos, a bunch 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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.