Philpl1jb
24530 pts. | Sep 11 2009 10:40AM GMT
You expect to “find” the year in this list?
2001 1985 1234 2222
You do not know it’s the second item?
First or second would pass tests of reasonable year like with 1234 too early? and 2222 to late?
Don’t see how we can pick the date correctly from that string.
Phil
CompEng
600 pts. | Sep 11 2009 2:37PM GMT
Below is the question that was asked of me by Phiil.
Is this correct? There is a text column, and somewhere in this column is a year, and you want to pick the year out of the text. Is that right?
Yes to all of the above.
I don’t know what happened to the other conversation that I added to Phiil last comment?
My last comment was that I answered yes to the questions above. I want to show the different types of examples that I experience in the query: ( the what the date is formated ) Also note that all the date is located at the end of the statements, this should help!
1) DODGE RAM TRUCK 8.0L 1996
2) CONCO/INTREP/LHS/VISI 3.5L 02
3) CHRYSLER FAMILY 95-94
The example below was not my examples, but rather the example give to by Phiil asking me if any of the illustration below would exemplify my situations? So my situation is listed above and phiil’s is listed below.
The data in 3 different rows might look something like this:
> Here is some text 1985 followed by more text
> This column has lots of numbers and one of them is a date 2001 1985 1234 2222
> 1234 s main street anytown state
Please note that what I have done in the past I would extract data from a particular column in access by copying and pasting into MS Excel and then delineate using the “Text to Column” format to seperate the date for the other text. Then I would re-paste it back into MS Access. In most cases I would need to manipulate both of the databases to accept my newly created information. Then I would either have to create a new database to import it into my query or link it in. The reasons that I need to find the dates is the file information coming out of the AS400, should follow a required format, but for those that do not this is what creates the difficulty. Dealing with thousands rows or files that are not formatted correctly is what consumes all my time. I need to try to create something that will extract the date styles, then create a new column that would enter the new information into it. Is this possible or not?
Also
On a second note is there a way to choose a particular cell in a column (a give number). Then the number would be made available to be changed? Then it would replaced back into the database/query, the old number would be replaced by the new number. thus updating a text value in a the query. The reason I need to do this is that I need to generate a number for a OEM number (6 to 8 number in any order) base on the last four digits Ex. 124236434 some my number would be 6434. Then when this is ran in the query and compared to existing numbers there may be an othe number 546546434 who’s last four digits are the same. So I want to be able to change the number to the next sequential set in the OEM number? Like 124236434 is not to be 2364. What I would like is that when a match is found a window would pop up with the cell that has my newly generated number in it and I would be able to change the nuumber and press a “OK” button that would replace the old with the new? Then have it updated in my query. This sounds like a tall order but how possible is it?






