473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

CmdSave button

Hello,

I have maid some changes from my original posting. I hope someone will be able to help me out. If someone could provide me with the VB code for this I would greatly appreciate it. If not could someone please give me a reference. On my main form [Frm_Main] I have a combo box [cboFollowUp] when a selection is made form [Frm_FollowUp] pops up.

On form [Frm_FollowUp] all the fields that I want are populated. The fields are:

Acct# - Control Source ‘ =Forms![Frm_Main]![ACCT#] ‘
PT Name – Control Source ‘ =Forms![Frm_Main]![PT_Name] ‘
Acct Balance – Control Source =Forms![Frm_Main]![ACCT BAL] ‘
Activity – Control Source ‘ =Forms![Frm_Main]!cboFollowUp ‘
Initial – Control Source ‘ =Forms![Frm_Main]![IN] ‘
Financial – Control Source ‘ =Forms![Frm_Main]!CAR1 ‘
Date – Unbound, Default Value set to ‘ =Now() ‘
Follow up date – Unbound, field is populated when selection is made from MS Calendar7 which is on the form.
Notes – unbound, (a field to add notes, 255 characters max)

I have save button [cmdSave] on this form, when it is click I would like all the fields above to be copied to table [Tbl_followUp_Activities]. The table [Tbl_followUp_Activities] has all the fields listed. Any help at all I would really appreciate. Thanks!
Nov 28 '06 #1
1 2722
NeoPa
32,556 Expert Mod 16PB
One way of doing it would be to formulate an append (INSERT INTO ...) SQL string which includes all the values you have available on your form then execute it.
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO [Tbl_followUp_Activities] ( [Acct#], etc )
  2. SELECT Forms![Frm_FollowUp].[Acct#], etc;
Nov 28 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Matt | last post by:
I want to understand the difference between submit button and regular button: <input type="submit"> and <input type="button">. My understanding is that submit button will send the entire HTML form...
6
by: Skip Hollowell | last post by:
I am working on a menu bar for a site, and am using buttons in the bar (because the customer wants to use accessKeys for each selection, apparently it is too much work to click on them with a...
25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
2
by: L Mehl | last post by:
When I exit a textbox on a form, the code attached to my cmdSaveRecord executes, as if I had somehow clicked cmdSaveRecord. I have gone through the compact-decompile-compact-compile-compact...
3
by: Zürcher See | last post by:
Someone has implemented a Datagrid Button for the Windows.Form?
18
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
7
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, All, I create button in the code ( Dim Button as new Button), not using button web component (means not drap button and drop it ont he webform), after that I try to use button_click event,...
23
by: shashi shekhar singh | last post by:
Dear sir, I have a word document file contains text and images, now i have saved it as a web page and wants to display it on browser , using , string str=directory.getfiles("");...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.