Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / May 2005

Tip: Looking for answers? Try searching our database.

Formatting the results of a Make Table Query when running it

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Night Owl - 20 May 2005 23:03 GMT
Is it possible to do this, or does it make better sense to format the fields
in a form based on the table?

The code I'm using is...

SELECT DISTINCT tblLinkedData.FSRef, tblLinkedData.Premises,
tblLinkedData.Type INTO tblFileReference
FROM tblLinkedData
GROUP BY tblLinkedData.FSRef, tblLinkedData.Premises, tblLinkedData.Type
HAVING (((tblLinkedData.Premises) Is Not Null))
ORDER BY Premises;

...but I'd prefer the FSRef field formatted as 123/12345/123

TIA,

Pete
fredg - 21 May 2005 02:03 GMT
> Is it possible to do this, or does it make better sense to format the fields
> in a form based on the table?
[quoted text clipped - 13 lines]
>
> Pete

SELECT DISTINCT Format([FSRef],"@@@\/@@@@@\/@@@") AS FSRef2,
tblLinkedData.Premises, tblLinkedData.Type INTO tblFileReference
FROM tblLinkedData
GROUP BY tblLinkedData.FSRef, tblLinkedData.Premises,
tblLinkedData.Type
HAVING (((tblLinkedData.Premises) Is Not Null))
ORDER BY Premises;

After the new table is made, change the name of the field from FSRef2
back to FSRef.
Signature

Fred
Please only reply to this newsgroup.
I do not reply to personal email.

Night Owl - 21 May 2005 09:17 GMT
Excellent, thank you.

Pete

>> Is it possible to do this, or does it make better sense to format the
>> fields
[quoted text clipped - 25 lines]
> After the new table is made, change the name of the field from FSRef2
> back to FSRef.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.