Query ~ Seperate 1 Field Into 8 Fields Using Pipes "|"

Aug 21, 2006

Information
8|REPORT BY THE COMMITTEE APPOINTED TO STUDY CLASSIFICATION, TRANSPORTATION, DISTRIBUTION STORAGE AND SALES OF PESTICIDES IN *******|***** *. *****|******** ** *** **********|****|||PA2|

Okay, so my office had this emergency data dump, we lost the library, the records were saved but to do so they had to be backed up as .t files :-s which means less formating then a txt file :eek: :eek: :eek: , anyway, my office is hopeful I can fix their problems, sorry bout the ***'s, I was told that I can not put that information up on the net for security/privacy purposes. Anyway, what I have to figure out to do is to take this 1 field and split it into 8 fields, these correspond with the | character. If you see 2 || or more together it means that field was empty. Anyway, I just need a way to break these into 8 seperate fields, any feed back would be great.

View Replies


ADVERTISEMENT

Query Problem With Two Seperate Fields

Mar 24, 2005

I am working on a DB and would like to include the following information on a report. The information is as follows;

tblPersonnel.Name
Tony
Jennifer
James
Tom

tblPersonnel.LOA
tblPersonnel.Vacation

Tony is on a Leave of Absence (LOA) Jennifer is on Vacation which leaves James and Tom at work. Lucky them! The fields "LOA" and "Vacation" are two separate check boxes.

I would like to limit the query to display employees that are either on a "LOA" or on "Vacation" Since they are in two separate fields how do I write the expression? I know how to limit it to only employees on LOA. Or employees who are on vacation, but how do I qry those who are on vacation or LOA?

View 3 Replies View Related

Fields Generated From A Seperate Table?

Feb 24, 2005

Hello,

I'm making a table with a Yes/No choice many fields which represent subscriptions.

The problem is that the subscriptions available will need to be changed fairly often - will this mean the table and the form associated with it need to be redesigned?

If so, I don't know how to make fields that change depending on a different table.

If this can't be done, I'd be interested to find out how else I could go about this.

Thanks for any help you guys can offer.

View 2 Replies View Related

Seperate Date And Time Fields

Jun 12, 2006

I'm working with a linked table that has a seperate field for the date, and a seperate field for the time (which show in the linked table as '11/30/1899 9:46:00 AM'). I need to calculate the time difference between 2 entries.

How can I merge the 2 fields into a combined date/time field for my calculations?

Thanks,

Sup

View 4 Replies View Related

Splitting Address Into Seperate Fields

Jul 22, 2007

Hi,

I have a an address field in my current MS Access table that has records following this sort of format eg. 21 Brown St, 21/56 Smith St

I want to separate every word in this field in to it's own field eg. field1=21
field2=Brown
field3=St
Addresses come in different formats (see examples above, with / or - etc.)

I'd like some code to complete this in VBA - please note I'm very new to programming so unfortunately everything must be explained.

Thanks

View 1 Replies View Related

Seperate A Imported Field From Outlook

Apr 1, 2008

Hi

I have imported data from Outlook. The field I am interested in is the
'Subject' Field. This contains 3 effective segments,
1 employee name
2 description
3 job and sub job number

example of text in field is

M.Heywood Completed Job No.1708 8
N.Curry Completed Job No.1477

I wish to move the employee name into another field and also the job and sub
job number. I have tried the following Right() Function but it is not quite
working as I want

Right$([Subject],InStr([Subject],"Completed Job No.")-1)

For the records above the results are as follows

No.1708 8
No.1477

What I really want is to only get the text after the .

Any help please as this is my first time with this function

Thanks

Richard

View 1 Replies View Related

String To Access With Delimiter Pipes

Nov 26, 2007

I have the a while loop with gives the string as following

1|2|Joe|Mark

2|4|Mike|Smith

….




I successfully created the .mdb with the tables. But how do I insert the above string with delimiter as pipes?


Any Suggestions…


Thanks

View 2 Replies View Related

Combo Box Query To Post Result To A Seperate Query

Sep 27, 2006

Hello, I have a combo box on a form which lists some names generated from a table.

I would like the selected name to be inputted into the 'critera' of another query called 'qryPBCustLevel' and for that query to be run.

I have tried to code this, but it is crashing at the point it trys to add the name into the query.

Can anyone help? Code listed below.

Sub cmbPB_AfterUpdate()

'Set the Dimensions of the Module
Dim strSQL As String, strOrder As String
Dim dbNm As Database
Dim qryDef As QueryDef
Set dbNm = CurrentDb()

'Constant Select statement for the Query definition

strSQL = "SELECT DISTINCT tblTempPB.PB_NAME" & _
"FROM tblTempPB"

strOrder = "tblTempPB.PB_NAME;"

' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[PB_NAME] = '" & Me![cmbPB] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark

'Pass the QueryDef to the query
Set qryDef = dbNm.QueryDefs("qryPBCustLevel")
qryDef.SQL = strSQL & " " & strOrder

'Open the Query
DoCmd.OpenQuery "qryPBCustLevel", acViewNormal

End Sub

Thanks, Steve. :confused:

View 2 Replies View Related

Merging 2 Seperate Types Of Query Recordset

Feb 2, 2006

Hi there,

I have to queries as below

one which shows a few stats figures etc all on a single row but has 6 columns altogether

the other shows some figures by function area and as there are like 7 function areas there are 7 rows but only 2 columns

i want all this informaiton onto one report so i guess that i need to merge this data together onto the one query some how

whats the best way to do this?

thanks

View 2 Replies View Related

Tables :: Export Table To TXT File Without Hyphens And Pipes?

Feb 23, 2013

I need to export a table to .txt.

I need to have the field names as well as the records.

Some records are part numbers with a leading zero like 043095.

Some records are part numbers with dashes and alpha's like 123456E-789.

I don't think I can use .csv because some records have a part number description uses comma's like "some text, more text, even more text".

I don't need all the hyphens and pipes for the grid work.

The problems I have so far are:Exporting to .txt without formatting doesn't bring over the field names (I know they made it this way) Is there a work around other than exporting the data and then adding all the field names in with a macro in Excel? I can do it but, what a pain.

I see dropping of leading zeros = 43095 in .txt and .xlsx

Exporting to Excel sometimes scrambles the part numbers and they come out like this 5.91E-09 when it should be 123456E-789 (so I'm losing data).

Exporting to Excel also puts qoutes in the description field like "A very large part" (extra clean up necessary).

easiest way to get rid of the hyphens and pipes and leave it in .txt form?

View 3 Replies View Related

Using Query Formula Information To Create Another Formula In A Seperate Query

Nov 20, 2006

I have a query that calculates input information into a value that then needs to be compared to another query values and will be used to output a % change in a third query. Is there any way to make this happen? Thank you in advance!

View 2 Replies View Related

Seperate One Column Into Two

Oct 20, 2006

Hi,

I was wondering if there was a query to run that would seperate a field in a column into to.

The Current Field is Prec and the entries all are numeric numbers followed by a dash and another numeric number i.e.
9700064-0
7600049-0
Another 7 digits-one digit
I would like the first 7 in a column called prec1 and the one after the dash in a column called grp

Thanks in advance

View 2 Replies View Related

2 Seperate Sub Forms On One Form

May 24, 2005

Is it possible to have 2 sepaerate sub forms, with different source objects on a single form. I thought it was, but every time I save the main overall form, the source object of the second subform changes to the source object of the first.

Can anyone shed any light on this?

View 3 Replies View Related

Seperate Password For One Table??

Mar 3, 2008

Hey all,
For securing a database, is it possible to set a certain password for users to view just one table? like i've lots of tables in my d.b that i plan to use a workgroup file for different users to view it, but there's one that i only want certain people to access...can this be done at all??

Cheers,
Sue.

View 2 Replies View Related

Query Field To Concatenate Fields With Nil Values

Feb 2, 2005

I have an Access 2000 project and am trying in a query view to join 3 values into one.
2 of the values come from tables, the third comes from another query view (all linked in the query design screen)

Value 1 is always populated, but for each record either Value 2 or Value 3 will always be empty.
All values are strings.

I have tried this formula in the query design grid:

dbo.Value1 + '/' + dbo.Table2.Value2 + dbo.vieTable3.Value3


..in an attempt to give the result Value1/Value2 or value1/Value3 according to the
particular record.

Unfortunately it doesn't work! ...just returns blank results when the query view is run.


Any suggestions would be greatly appreciated

thanks....nick

View 4 Replies View Related

Queries :: Two Tables Fields Into One Query Field?

Feb 24, 2015

I have two tables: tbltasks & tblsafety

Both tables have a date field in, one table keeps tracks of my tasks the other the expiry date of some safety checks.

I currently have a timed pop up that looks at dates within a table that are within 30 days from now, if there are any dates the reminder pops up.

The problem is I want the pop up to look at two sepearte columns in two different tables, so I figured it would be easier to create a query combining these dates and just ask the pop up to look at that query date column.

I want to create a query that very simply lists all the dates in one column combined from both tables.

View 3 Replies View Related

Link Two Seperate Database Tables

Mar 9, 2005

Is it possible to create a database and link this to a form and another database? What i want to do is link a network database with a local database on a client machine?

View 3 Replies View Related

Import A Csv File And Seperate Bad Data

Jun 15, 2005

I want to import a csv file and store the good data (which matches input masks, validation etc) into one table, and all the bad data which is rejected into another table.

I've read a bit about an import error table, and although I do get errors when importing the csv file, no such table is generated.

Many thanks

Cc

View 1 Replies View Related

SubForm Requery From Seperate Form

Aug 11, 2005

Hi. Having a bit of a problem getting a subform to requery/refresh after running a query from a seperate form. The seperate form is acting as a 'search form' and running query qSearch.

I've tried various things (requery the form, subform etc) but here is the code I'm currently using:

Private Sub RunqSearch_Click()
DoCmd.OpenForm "Papers"
Forms.Papers.RecordSource = "qSearch"
Forms.Papers!Authors.Form.RecordSource = "qSearch"
Forms.Papers!Authors.Form!AuthorName.ControlSource = "qSearch.AuthorName"
Forms.Papers!Authors.Form.Requery
Forms.Papers.Requery
DoCmd.Close acForm, Me.Name
End Sub

The main form is requerying fine, but the subform isn't. Any help would be appreciated. Thanks

View 4 Replies View Related

Seperate Text Boxes From Labels

Jun 8, 2006

I am learning access on my own using MS Press step by step manual and it tells me to hold down the shift key while selecting the text boxes that are next to the labels, but when I do the labels get selected also . how do I disconnect the labels from the text boxes in order to insert space between the labels and the text boxes as it intructs me to in the book. I am able to select the labels separately, but it will not allow the text to be selected separately.

View 1 Replies View Related

Recall - Search Seperate Table

Nov 17, 2004

I want to be able to find the last value entered into a table from a form that is not based on that table. How do I go about this?

What I am trying to do is produce a 'purchase order number system' that adds 1 onto the previous number, but this purchase order can be generated on many forms and for many reasons across the database. I do not want to use autonumber.

Cheers,
Recall.

View 1 Replies View Related

Sharing Variables Between Seperate Reports

Nov 29, 2004

Hi ya,

Still working on a products catalog. I am creating this by printing a couple of separate reports, each with its own category.

At the end of a report A I store a value (number of pages) into a variable "NumPage", defined in Visual Basic. I have made this variable public and also the sub in which it is altered (report_close()) is public.

Now I should have stored the number of pages of report A in NumPage, enabling me to start report B with the right page. However in the public sub (on_open()) of report B I am not able to display the value of NumPages (just using a messagebox to check if it works).

Does anyone know whether it is possible, and if so in which way, to pass a variable created in a module of report A to report B?

Cheers,

Thomas

View 1 Replies View Related

Seperate Database Records In Divs?

Feb 8, 2005

I am trying to create a page that can display 4 different records from a database, each one in a different div container, for a news page.

I have an access database containing news records - headline, news and date. Each record also has its own auto-numbered ID.

So far I have managed to get the asp page to display all of the records in a list by using:

recordset.movenext
Loop

and I have managed to get just 1 displayed by using:

SQL = "SELECT * FROM tblNews WHERE ID=1" and changing the ID number.

But I can't seem to find a way to display each in a different div container on the same page. Can anyone help please? I think this is really obvious but I just can't see it!

Thanks.

View 2 Replies View Related

Importing Text From Seperate Forms

Jun 12, 2007

I am having a problem with importing text from one form to another one. I am logging into the company server and getting the database from there. But for some reason the text will not import on my machine but it will on others. Any help would be greatly appreciated.

View 1 Replies View Related

Adding Fields In A Table To Create New Field In A Query

Mar 14, 2008

I've got a fields called rev code that contain the following values:

field name: 110 131 250 255 258

field value: 7.49 6 11.25 12.11 78


I'm writing a query that pulls from the first two digits of the rev code and need to round off to the nearest dollar so in my query I'll have a column 11 with a value of 7, a column 13 with a value of 6, then I need to take columns 250 255 and 255 add the values together and round off so I get a column 25 with a value of 101.

How do I do that?

View 14 Replies View Related

How Do I Create A Query To Move 2 Fields On The Same Row To Be 2 Rows In One Field

Jun 6, 2007

Hello,
I have a big table like this:
ID Name Race1 Race2 Race3
-- ---- ----- ----- -----
1 a Asian russian

How do I create a query to be like this (either in query or report)?
I like to combine three fields (race1, race2, race3) in one field (Race), and break any value of races to the 2nd line, 3rd line, if there is a value...
ID Name Race
-- --- ----
1 a Asian
Russian

In Oracle and SQL Server, we can combine a few rows to be columns-like, but in Access, is there any way to do that? and how?

Thanks so much!

Jenny.

View 1 Replies View Related







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