Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a view

Status
Not open for further replies.

szaunbr

Technical User
Jul 5, 2006
50
US
I would like to create a view that is essentially the entire table, but with one exception. The original table has the SSN w/out dashes, and I would like to create the view to have all data fields including the ssn with the dashes. Any help would be appreciated.
 
For ssn field
Code:
select left(SSNFIELD, 3) & "-" & mid(SSNFIELD, 4,2) & "-" & right(SSNFIELD, 4)

You will have to save this as a query though, and reference as a table because to my knowledge access does not allow 'views'.

Hope this helps,

Alex

A wise man once said
"The only thing normal about database guys is their tables".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top