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 / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

Making a one time function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott - 15 Apr 2005 19:33 GMT
I made a database for travel expenses. Each trip had a field for "meals" and
one for "lodging". Now the people using the database have decided they want
both to be combined in a single field called "subsistance".

I would assume that I need to add lodging to meals, and set meals equal to 0
for each entry in the DB, and then change the name of lodging to subsistance.
How do I create this so that it will only run once? I can't find a way to
implement it...

Thanks
Klatuu - 15 Apr 2005 19:57 GMT
I don't think you need a function.  I would suggest an update query that
would add the value in meals to the value in lodging and update meals to 0.  
Then, go into the table in design mode and change the name to subsistance.  
Am I oversimplifying this?

> I made a database for travel expenses. Each trip had a field for "meals" and
> one for "lodging". Now the people using the database have decided they want
[quoted text clipped - 6 lines]
>
> Thanks
Scott - 15 Apr 2005 20:11 GMT
Genius! Worked like a charm.

> I don't think you need a function.  I would suggest an update query that
> would add the value in meals to the value in lodging and update meals to 0.  
[quoted text clipped - 11 lines]
> >
> > Thanks
 
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.