Separate Name Fields To Initials

Aug 13, 2007

Hi all, I'm trying to splitt the name of the clients in my query into a column called Initials:

Their 'Names' are in this format

SMITH,JOHN
JONES,PETER

Therefore in Initials, i want to see in column Initials

JS
PJ

How do i do this please? Many thanks

View Replies


ADVERTISEMENT

Separate Data Into Two Fields

Aug 1, 2007

I have a database with a field LNAME with last names preceded by maiden names in parentheses. I would like a query that would update fields (LAST and MAIDEN) with the corresponding data:

Example –
LNAME = (Jones) SMITH
LAST = SMITH
MAIDEN = Jones

Any ideas would be greatly appreciated.

Thanks,
SKK

View 2 Replies View Related

Linking 2 Fields From 2 Separate Table.

May 11, 2005

Hi.. Junior access user here. Need help fast!

I created 2 tables. [General Info] & [Details]

[General Info] has 2 fields. Name(is a primary Key as well) & Organisation

[Details] has 4 fields. Primary Key, Name, No of products & Type

[Details] is a sub form for [General Info]

It is a one to many relationship. With Name from [General Info] linking to Name from [Details].

I can update via the table directly and [Details] links the name fields automatically. I created a form but the form just cannot register the field automatically and requires the user to type in the Name from [General Info].

I have attached the DB file. Pls help... your help is greatly appreciated!

View 3 Replies View Related

Linking Fields In Separate Forms

Jan 4, 2007

I have a form with contact info, which also has a subform with other data on it. The subform is a continuous mode form. If I go to the "New" line (last line) of the continuous form, I can add information, and the records are linked via the customerID field on both the form and subform.

I want to have a button on that subform that says "New" that opens up a different form in a popup. I can do that part just fine, but when I try to enter data onto the popup form, the customerID field does not populate with the ID number of the person on the main form. It defaults to a value of "0".

So, is there a way to link the 2 forms like you can with forms and subforms? Or is there a way to have the customerID field in the popup form just populate based on the other form?

Not sure if this makes sense, but please help if you can. Thanks.

View 5 Replies View Related

How To: Separate Data In One Field Into 2 Fields

Mar 18, 2005

I am new to Access and was wondering if there was a way to parse the data from a field into two fields.

I have a field named tName which contains both the first name and last name of a person.

How can I get the corrosponding last name into a new adjacent field called tLastName (this field doesn't exist yet)?

Thanks so much in advance,
Paul

P.S. What if the the person doesn't have a last name? or if they included a middle initial?
I know, it's messed up. This DB has a bad setup.

View 2 Replies View Related

How To Calculate Average In Two Separate Fields

Oct 28, 2012

I need to calculate the average repaired time and the average response time. These are two separate fields ....

View 1 Replies View Related

Create A New Table Or Use Comma Separate Fields

Dec 27, 2007

All,

I have a quick question that could lead into a longer one.

First off, I am trying to associate tests with a course a student is enrolled in. Would it be better to add a column in the courses table and have a comma separated list of all tests associated with each course or would it be better to create a separate table that has a column for the course and another column for the associated test with that course?

If comma separated fields would be better, how would I handle that in forms? How does one parse that field?

Thanks!

View 6 Replies View Related

Join Two Separate Databases Using Common Fields Slightly Different In Each Database

May 31, 2013

I am trying to form a join between two separate databases. Database 1 has a column (Gene_Name2) that consists of common names of human genes. In this database there is only one name for each gene per field. The other Database 2 has a column (Gene_Name2) that has various names for the same gene in each field. Most genes have been given different names over time. I want to join the databases into a separate query database so that all of the information in Database 1 is retained and only when the name in Database 1 matches one of the names in Database 2 does the row of information get tacked on to the query database. The problem is that in a normal query the text in both Gene_Name columns do not match and the query returns no matches. I have tried Instr and like criteria statements with no luck.

Database 1

Chrom Gene_Name1 Data1
Chr1 ATC XYZ
Chr2 IDH2 ZYZ

Database 2

Gene_Name2 Data2
ATC;ORF34;NM_123 ABC
ORF65;IDH2 IGH

Joined Query

Chrom Gene_Name1 Data1 Gene_Name2 Data2
Chr1 ATC XYZ ATC;ORF34;NM_123 ABC
Chr2 IDH2 ZYZ ORF65;IDH2 IGH

View 8 Replies View Related

General :: 2 Fields From Separate Tables Needed To Create Calculated Field?

Aug 19, 2013

The interface being used is a main form with various tabs and a subform on each of these tabs.

There is one field ('max power density') in my database that is calculated using 'Max Rated Power' and 'Cylinder Capacity' however these are in different tables and subforms. The 'max power density' and 'max rated power' are in table and subform 1 but 'cylinder capacity' is in table and subform 2. Is it possible to keep them in separate tables/subforms and still calculate the field?

View 7 Replies View Related

Modules & VBA :: Unable To Add Current Date And Time Into Separate Fields After ID Entered

Jul 26, 2014

I am trying to add the current date and time into separate fields after an ID is entered.

Code:
Option Compare Database
Private Sub ID_AfterUpdate()
Me.Date_Received = Date()
Me.Time_Received = Format(Now(), "hh:mm AMPM")
End Sub

View 5 Replies View Related

Tables :: Extract Data From Memo Field And Put Into Separate Fields Of New Table

Jun 15, 2014

I have a notes field in the customer table that is a memo field. An example of one customer's notes field data :

<div>20.3.14 Ordered 2 cartons</div>
<div>4.3.14 Ordered 2 cartons</div>
<div>18.2.14 ordered 1 carton</div>
<div>30.1.14 ordered 3 cartons SCENTED wipes</div>

[Code] ....

I want to extract the date to append to a date field in a "Calls" table and the comment into a text field in the "Calls" table. Is there a way I can do this via query or code?

View 2 Replies View Related

Queries :: Crosstab Query That Keeps Each Contract On One Line And Separate Fields For Each Contact

Jun 4, 2014

I have two tables, and I'm trying to create a crosstab query...I think. One table is Contracts, one is Contacts. Each contract could have multiple contacts, but they are numbered (1, 2, 3...etc.) based on importance. I want to create a query that keeps each contract on one line, and separate fields for each contact and each field of the contact. So a contact will have Title, First, Last, Address, etc. So I want my query to show as follows:

Code:
Contract-----Title1-----First1-----Title2-----First2
ContractX Mr. James Mrs. Sally

I of course need this to be dynamic, so if a contract has 9 contacts, there are fields up to Title9, First9, etc.

View 7 Replies View Related

Queries :: Concatenate Person Name And Initials

Aug 21, 2013

How to concatenate a number of fields from a table into a query.

The fields are:

Prefix
Firstname
MiddleInitial
MiddleInitial2
MiddleInitial3
Surname

Note that there will be varying combinations: some people will have a Prefix, Firstname then surname (no middle initials), so I would want to display "Mr Joe Bloggs". But others could have no Prefix but two middle initials, so "Joe P J Bloggs".

View 2 Replies View Related

Modules & VBA :: Fetch Initials (First And Last Letter) Of Username

Dec 24, 2013

How can we store the first and last letter of the username using vba.

E.g. my name is "Daniel Rawlings" then it should display "DR".

View 1 Replies View Related

Forms :: Can Automate Adding Date / Initials To Memo

Apr 28, 2014

We have a memo field that folks may add to on different days. Additionally, different users may add notes if the person who started to work on the transaction is out of the office. My manager would like to add a way to include the date and initials of the person that added a new memo automatically after they add a memo. Currently, we don't track user login so I'm assuming we would have to in order to get their initials.

View 3 Replies View Related

Forms :: Displaying Initials In Combo Box When Option Selected From Drop Down

Oct 2, 2013

I have a Combo Box bound which gets its values from a table (T_Users).

The Combo Box displays the Users 'Initials' [Column 1], but the Bound Column [Column 2] is that of the Users 'ID' (which is used when a record is edited or a new record added).

What I want to be able to do is when the user clicks the Combo Box, and the drop down list 'drops down' the options, I want them to not only see the 'Initials' but also selected other columns - BUT - when the option is selected I just want the 'Initials' to be displayed in the Combo Box.

Code:
So, Normal > | ABC |

Dropped Down > | ABC |
--------------------------------------------
| ABC (Annabel Carcus, Big Company Ltd.) |
| JB (Joe Bloggs, Medium Company Ltd.) |
| FS (Fred Smith, Little Company Ltd.) |

Select JB, and > | JB |

View 6 Replies View Related

User Login And Have Their INITIALS Auto-Filled When Filling Out Forms

Apr 17, 2013

I have a database where multiple users log in and work in 1 of 2 different forms. The 1st form in for initial data entry where users enter data then senter there initials and save each record. the other form is for QC'ing data that has been entered and they will add additional data to the form, then enter their initials and save the record.

How can I make it so that I can have a user once they log in to the database, it will autofill their initials? I have used a dropdown box before but it is not useful for people who have the same first name initial or worst, the same first and second initial because they end up selecting the wrong initials.

I do not currently have it set up where I have a login screen, I just have only forms visible to users when they enter data. Any easiest way to go about making this happen (I am just trying to shorten the amount of data entry that gets done).

View 9 Replies View Related

Tables :: How To Convert Middle Names To Middle Initials

Dec 13, 2012

I have names which are in the following format

smith, john adam
smith jr, john adam
smith, john a
smith, john

How can I make all middle names middle initial IE

smith, john a.
smith jr, john a.
smith, john a.
smith, john

I would imagine I need to use instrrev and insert "*." after the last space. Would that work?

View 2 Replies View Related

Queries :: Sum Of Two Fields From Separate Queries

Dec 16, 2014

I have a sign up form where people select their name for the time slot they want, there are 2 spots open per time slot, so I have Interviewer A and Interviewer B. Records can then either just be a name in A or a name in A and B.

I would like to run a report that shows how many times all the interviewers have signed up in a date range.

I can do this individually by looking up one name at a time with this query:

SELECT Sum(Interview_Schedule.ID) AS SumOfID, Sum(Interview_Schedule.Completed)*-1 AS CountofYes, Count(Interview_Schedule.Completed) AS CountOfCompleted
FROM Interview_Schedule
WHERE (((Interview_Schedule.Interviewer_B)=[Forms]![Main]![NavigationSubform]![cboSup])) OR (((Interview_Schedule.Interviewer_A)=[Forms]![Main]![NavigationSubform]![cboSup]) AND ((Interview_Schedule.Interview_Date) Between [Forms]![Main]![NavigationSubform]![txtStartDate] And [Forms]![Main]![NavigationSubform]![txtEndDate]));

My question is how do I get a report to show all agents at once with their own interview count?

I can make 2 separate queries to look up each field, for interviewer A and Interviewer B, then run a join query, but this results in 2 counts for each agent and I can't sum the two totals together....

SELECT Sum(Interview_Schedule.ID) AS SumOfID, Sum(Interview_Schedule.Completed)*-1 AS CountofYes, Count(Interview_Schedule.Completed) AS CountOfCompleted, Interview_Schedule.Interviewer_A
FROM Interview_Schedule

[Code] ....

View 7 Replies View Related

Queries :: Getting Date / Time Range - Date And Time Are Separate Fields

Mar 13, 2014

I have a database with date and time each stored in a separate field. Now I want to query the database based on a start date/time and an end date/time. I started with the code below but it only returns events within the same time range on each day when what I really need is every event from a specified date and time through a specified date and time.

SELECT myTable.ID AS myTable_ID, myDate, myTime, FirstName, LastName
FROM Staff INNER JOIN myTable ON
Staff.ID = myTable.StaffID
WHERE myTable.myDate >= #3/2/2014#
AND myTable.myDate <= #3/3/2014#
AND myTable.myTime >= #8:00PM#
AND myTable.myTime <= #11:00PM#
ORDER BY myDate desc

In the above example what I want is every event from 3/2/2014 8:00PM until 3/3/2014 11:00PM. But what I get instead is every event between 8:00PM and 11:00PM on 3/2/2014 and every event between 8:00PM and 11:00PM on 3/3/2014.

View 4 Replies View Related

Separate Records By Column

Apr 26, 2006

I have a table set up as the following:

ssn account
01234567 1234567890
01234567 9876543210
01234567 7539514562
98765432 8765432109
98765432 9876541230

and so on...

I would like to create a query that will split the records up like this:

ssn account1 account2 account3
01234567 1234567890 9876543210 7539514562
98765432 8765432109 9876541230

and so on...

It can be in any format, either query or report, I just have to be able to export it into a text file in the same format. Does anyone have any ideas?

Thanks!

Vassago

View 11 Replies View Related

Separate Different Type Agreements

Oct 28, 2006

Hello everyone … I am a Access Newbie and I have simple problem. My mind is stack and I can find the solution ….maybe it’s really simple but I don’t have a free time It’s hard.. So the problem is that I make one Database in Access (Really nice and simple program) .It;s about one Insurance company and my tables is

1 Customers
2 Agreements
3 Traffic (about the money)

So the customer is one but he can have a lot of agreements (In this case it’s about cars and I use Card Ids) and in the end I can see about the car-agreement traffic. 1 costumer 1 or more agreements and in the end the agreement traffic
My problem is that the agreements are for 6 months and for 1 year …I don know how can I I separate them… I need a switch (with 2 only types) Here is the relations in my Database … if you can help me that I would be nice form me ..Thank you

http://q-d.gr/images/_notes/relations.jpg

View 6 Replies View Related

Separate Table For Dates?

Oct 27, 2005

I am designing a database to enter daily/monthly performance numbers for employees and department totals. However, I don't want to have to enter the month and/or day for every category for each employee entered. In looking through these forums, nobody recommends a separate date table. But it seems time-consuming to have to enter the reporting month for every sales category for every employee. To wit:

TblEmp
EmplID
EmplName
HireDate
TerminationDate

TblCategories
CatID
CatName
CatType

TblDate
MonthYr
DayMonth

TblMonthlyPerformance
AutoID
EmplName
CatName
MonthYr
Amount

TblDailyPerformance
AutoID
EmplName
CatName
DayMonth
Amount


If I don't have a table for dates, then for every category for every employee, I would have to enter the date...right or wrong? Or am I thinking flat.

View 14 Replies View Related

Two Separate Issues With Same Database

Oct 1, 2006

:o
I know this isn't rocket science, but since I'm not a rocket scientist (read no VBA - I have registered for a self-taught course, so my annoying questions may become fewer) you may have to bear with me.
:o

1. I'm trying to get a subform opened using a command button. The mainform is AddNewTransactions and the subform is SiteDetails. The linking field is TransactionsID. I've tried using the command button wizard, and tried doing it manually with a macro. The SiteDetails shows ALL sites, not just the one connected to the main form. I'm sure there is a simple solution, but I haven't found it here yet.

2. I have to convert English decimal numbers to French numbers with a comma. Replace() did the trick except for one small annoyance. It trims trailing zeroes. 0.240 becomes 0,24. Is there any way to force it to display the zeroes? Unfortunately they're not same number of zeroes from one value to the next, so I can't just add them. This more for visual appearance than accuracy so it is not critical.

Thanks in advance for your help.

View 1 Replies View Related

Lookup Or Separate Table?

Aug 19, 2004

While trying to "normalize" a developing database, a question has come up. I have two sets of information that will probably never change. Hair color and Eye color. Should these be put into a separate table or can I include those two fields in the table containing information about the person and then use the lookup wizard function in the table design and "type in the values I want"? I am using '97. Thanks.

View 1 Replies View Related

Separate Combo Box In Report

Aug 31, 2007

I have a field that consists of a combo box with 8 items in it. Each of these 8 items is a label for a type of income. I also have a separate field that is the amount of income. Is there a way to show on a report the 8 types of income as 8 columns, and separate the amounts of income into the correct column? I know this involves a query, but I'm not sure where to begin.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved