473,472 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Text field propegation (Access 2007)

34 New Member
OK I have a problem. I'm fairly sure this has been answered somewhere, but ai can't seem to find it.

I have a single table with 3 fields:

Table1:
empFirstName
empLastName
empFullName

In a separate Access "DB" I have a form that allows me to create, edit and delete entries on this table. The form has these three text fields:

Form1:
frmFirstName
frmLastName
frmFullName

What I am trying to do is get the frmFullName text field to auto-propegate from the frmFirstName and frmLastName fields when creating a new record. Along with that auto-propegation I need the resulting information to fill in the empFullName collumn on the linked table. I use the empFullName field on other tables and forms as a standardization technique, but for the life of me I can't figure out how to do this. I can follow the guides and get the text field to show the full name, but that requires filling specific info into the control source, which then stops the information from being saved to the table. I'm stuck and would appreciate any help.

When I enter the following line in the Control Source property box if shows up correctly on the form, but does not fill in the field on the table.
Expand|Select|Wrap|Line Numbers
  1. =[LastName] & ", " & [FirstName]
Example:

First Name: Test
Last Name: Bug
Full Name: Bug, Test

Getting the Full Name to fill to the Table1 empFullName field is where I am having my issues.
Sep 27 '10 #1

✓ answered by Mariostg

I suppose the problem is that you source your fullName field by concatenating two other fields, which does not tell your fullName field to source (fill) your empFullName field.
Maybe you want to implement some actions when either of the First or Last Name fields change
Expand|Select|Wrap|Line Numbers
  1. Private Sub firstName_AfterUpdate()
  2.     UpdateFullName
  3. End Sub
  4. Private Sub lastName_AfterUpdate()
  5.     UpdateFullName
  6. End Sub
  7. Function UpdateFullName()
  8.     Me.FullName = Me.lastNAme & ", " & Me.firstName
  9. End Function
  10.  
  11.  

2 1472
Mariostg
332 Contributor
I suppose the problem is that you source your fullName field by concatenating two other fields, which does not tell your fullName field to source (fill) your empFullName field.
Maybe you want to implement some actions when either of the First or Last Name fields change
Expand|Select|Wrap|Line Numbers
  1. Private Sub firstName_AfterUpdate()
  2.     UpdateFullName
  3. End Sub
  4. Private Sub lastName_AfterUpdate()
  5.     UpdateFullName
  6. End Sub
  7. Function UpdateFullName()
  8.     Me.FullName = Me.lastNAme & ", " & Me.firstName
  9. End Function
  10.  
  11.  
Sep 27 '10 #2
MOCaseA
34 New Member
Absolutely beautiful. The perfect... I knew I was missing something... Thank you!
Sep 27 '10 #3

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

Similar topics

5
by: Drifter | last post by:
The quote below is part of the information i want to save to a MS Access database - or update, as the case may be. The original database was built a long time ago, and looking at the code for...
1
by: Manish Singh | last post by:
Hai, The problem I am having in the access table is that I have a field in the table where the character length goes up to 300 - 320 character. Is there any way to add 300 charcter as Text field...
1
by: TimmyNZER | last post by:
Hi, I'm trying to set the format of a "text box" to accept text, I have tried setting the format in the property sheet, but there are only numerical options. I'm sure it must be pretty simple, but...
9
by: Neil | last post by:
I need to implement a rich text box in an MDB file for a user base that consists of Access 2000 and Access 2002. Unfortunately, I'm using Access 2003 on my development machine. My understanding is...
1
by: jackbenimble999 | last post by:
Hello! What is the best way to display a EUC-encoded field with Access 2007? Or, failing that, how do you display a Unicode field as the character instead of the number? Do I need to use a...
2
by: kevinfbutt | last post by:
Hi All! I have an SQL Server View where my field in the view is an integer field and works well. When I link to it from Access, the field is defined as a text field in Access. Does anyone...
6
by: mulamootil | last post by:
Hey guys - Is there a way to wrap the text in the header field in an Access 2007 table. I did some googling, however no luck, thought I will post it here. I sure appreciate your time and help. stan
2
by: rywags11 | last post by:
Hello, Can anyone help me figure out how to show/hide fields based on information entered in other fields in a form in Access 2007? What I'm looking to do is: When a selection from a drop down is...
3
by: prashantdixit | last post by:
Hi, I have a form named as "Add New Stock" and it has some controls. There is control name as "Reference" along with "Browse folder" button. So user can select a file through this Browse button...
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
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
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...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.