Me again!
I am not sure how to phrase this, "but", I have to create a field that produces data in a specific format from other fields of data.
Creating the table and the query was the easy part...now taking the data that reside in that table, adding in a new field that takes the info from the other fields and makes it look a special way in that new field.
I'm not sure where to put the code in the query. If it's [this security] then the layout in that new field is [their format].
I have a data entry screen that asks for:
Strike (the number)
ExpM (expiration month)
ExpD ("day)
ExpY ("year) (I did them this way because of the format requirements below.)
Month (drop down, chose a three character month, saves to table)
Underlying (same thing which is the SPX I'm talking about)
Call/Put with is a drop down, choose C or P
Security drop down with choices
A silly example:
Security A likes their symbol to look like:
SPX 101017C00975000
(three spaces after the SPX)
SPX YYMMDD(C or P) some zero padding, the number, more zero padding
Here's another exmaple:
Security B likes their symbol to look like:
SPX 10/10/09C975
(one space after the SPX)
SPX MM/DD/YY(C, number and no padding)
And then finally another:
Security C likes their symbol to look like:
SPXOCT975C2010
SPX(three chara month),number,C ,full year. No spaces for anyone here.
Now my screen has fields for data entry and a few have a drop down (list value) combo box. Whatever they choose is written to the main table. Anyway, upon clicking "Enter" button I would like it to enter and save the record into the main table but also pull the info entered in the other fields into the new field that requires it to show in its special format.
I'm sure I'm confusing the heck out of everyone so I'm ready for the questions to begin!
I am not sure how to phrase this, "but", I have to create a field that produces data in a specific format from other fields of data.
Creating the table and the query was the easy part...now taking the data that reside in that table, adding in a new field that takes the info from the other fields and makes it look a special way in that new field.
I'm not sure where to put the code in the query. If it's [this security] then the layout in that new field is [their format].
I have a data entry screen that asks for:
Strike (the number)
ExpM (expiration month)
ExpD ("day)
ExpY ("year) (I did them this way because of the format requirements below.)
Month (drop down, chose a three character month, saves to table)
Underlying (same thing which is the SPX I'm talking about)
Call/Put with is a drop down, choose C or P
Security drop down with choices
A silly example:
Security A likes their symbol to look like:
SPX 101017C00975000
(three spaces after the SPX)
SPX YYMMDD(C or P) some zero padding, the number, more zero padding
Here's another exmaple:
Security B likes their symbol to look like:
SPX 10/10/09C975
(one space after the SPX)
SPX MM/DD/YY(C, number and no padding)
And then finally another:
Security C likes their symbol to look like:
SPXOCT975C2010
SPX(three chara month),number,C ,full year. No spaces for anyone here.
Now my screen has fields for data entry and a few have a drop down (list value) combo box. Whatever they choose is written to the main table. Anyway, upon clicking "Enter" button I would like it to enter and save the record into the main table but also pull the info entered in the other fields into the new field that requires it to show in its special format.
I'm sure I'm confusing the heck out of everyone so I'm ready for the questions to begin!
Comment