Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 2nd, 2004, 07:21 PM
redpepper redpepper is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 redpepper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question How to save the current record in a form programatically

Hello All,

This is my first post here and I'm hoping I can find a good answer
to this seemingly tricky problem:

I think this might be very simple but I just don't know.

I have a form that is capturing the data for a Purchase Order. After issuing the command Add New Record
the user enters all the data. I also have a button that allows them to print the new created PO.

If I leave the form and come back and want to print the PO, everything works fine. But while the new entrered
information is still on the screen, one can't print the PO. Reason being, that the information hasn't been saved
yet.

I need a command that will force the current record to flush and save to the table before I print and I need
to this programatically.

Something equivalent to Me.update, but since I am not using code to do all this, I don't know what command to
use.

Anyone has an idea?

Thanks in advance.

Reply With Quote
  #2  
Old March 10th, 2004, 07:06 PM
redpepper redpepper is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 redpepper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

I found it, if someone else needs it here it is.

I thought it must be something real simple and it was.

Me.Refresh

This will force all your current's Form info into the database.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > How to save the current record in a form programatically


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT