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 / July 2007

Tip: Looking for answers? Try searching our database.

How can I get the Primary Key to show up in an e-mail?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FargoBison - 11 Jul 2007 22:40 GMT
I created a Help Desk database that once I have the form completed I click on
a macro that takes the information I have selected and places it into an e-
mail using outlook and will be e-mailed to the tech to take care of the pc
issue. I have the tables stored on the server and they are linked to Access
2003.

All the information transfers over except for the Ticket ID (which is the
primary key) field. It doesn't enter that into the e-mail since it really has
not been created because the table has not been updated. I had the table set
to Auto-Number and on the server I had it to increment by one and the seed
was set to start at 100.

Could anyone please give me any ideas how I can get that to update before I
create teh e-mail ticket?

Thanks
John W. Vinson - 12 Jul 2007 01:09 GMT
>Could anyone please give me any ideas how I can get that to update before I
>create teh e-mail ticket?

Put a line in the code

If Me.Dirty = False Then Me.Dirty = True

This will force a write of the record to disk, and increment the autonumber.

            John W. Vinson [MVP]
FargoBison - 12 Jul 2007 16:19 GMT
>>Could anyone please give me any ideas how I can get that to update before I
>>create teh e-mail ticket?
[quoted text clipped - 6 lines]
>
>             John W. Vinson [MVP]

Thanks for the help! I was trying to make it harder than it actually was
 
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



©2009 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.