473,467 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Opening and Closing Popup Form

43 New Member
[Z{Moderator's Comment: This thread was split from the orignial:
> Form Creation Help}]


Got it to work, but now I have a couple of questions regarding the form. I turn the form into a popup, which works great. However, how to I get the initials and the Yes/No choice to save in the table. The form's control source is a table named "EventT" with colums to record the choice and the initals. But when I run the form the choices and initals don't record in the table.

Thanks
Toni
Mar 19 '13 #1

✓ answered by Seth Schrock

Assuming the name of your form is frmPopup,
Expand|Select|Wrap|Line Numbers
  1. DoCmd.Close acForm, "frmPopup"
You can put this in the OnClick event of any of your buttons.

5 13753
Seth Schrock
2,965 Recognized Expert Specialist
Ah, so then this is a bound form. You just need to edit the control source of your Initials textbox to the proper field. If you click in the control source property, you will get a drop down list of the possible fields. In your buttons' OnClick events, you can reference the field to set it to the value you need (I know this works if the recordsource is a query, but I'm not sure if it works on a table).
Mar 19 '13 #2
tmdrake
43 New Member
Thanks Seth, that worked. Now how do I get the popup form to close on selecting Okay. Below is the code I've come up with so far, but I'm not sure where to go from here.

I need for it to open a form, then close the popup form;

Expand|Select|Wrap|Line Numbers
  1. Private Sub Yes_Click()
  2.       DoCmd.OpenForm.:GeneralTabPullTest:
Thank you very much for helping me.
Mar 19 '13 #3
tmdrake
43 New Member
Opening and Closing Popup Form would be a good title.
Mar 19 '13 #4
Seth Schrock
2,965 Recognized Expert Specialist
Assuming the name of your form is frmPopup,
Expand|Select|Wrap|Line Numbers
  1. DoCmd.Close acForm, "frmPopup"
You can put this in the OnClick event of any of your buttons.
Mar 20 '13 #5
tmdrake
43 New Member
Thanks Seth, this worked perfectly.
Mar 20 '13 #6

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

Similar topics

1
by: Eric Cadwell | last post by:
We're running Load Runner to test a large 1.0 based WinForms application. I'm getting the following exception when opening and closing a form 400 - 450 times. The form contains several controls and...
5
by: D Witherspoon | last post by:
I use the following code to open up a form. ------------------------------------------------------- If fImage Is Nothing Then fImage = New frmImage End If fImage.Show()
4
by: Ellen Manning | last post by:
Using A2K. I have a form that allows the user to print one or more reports. The user checks which report they want printed then they click on a button to start printing. A popup form displays...
4
by: SteveS | last post by:
Hello. This is a strange problem which does not make sense to me. I open a popup page with the following javascript code: function OpenDenyWindow(changeId) {...
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....
13
by: Deano | last post by:
Apparently you can only do this with one value i.e Call MyAssetLocationZoom(Me!txtLocation, "Amend data") This runs; Public Sub MyAssetLocationZoom(ctl As Control, formName As String) On...
6
by: Gerry Abbott | last post by:
Hi all, Im opening a bound form, targetForm from other forms, but want close it if there's no records in it. Would be good if I could do this from within the targetForm, since I open it from...
1
by: ss | last post by:
Hi I am opening a new form by: ChooseLeve chl = new ChooseLevel(); chl.owner = this; chl.close; i want that when the user clicks on button1 in chl (ChooseLevel), the preiouse form will be...
4
by: Macbane | last post by:
Hi, I have a 'main' form called frmIssues which has a subform control (named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs. A control button on the main form opens a pop-up form...
6
by: jaad | last post by:
I use a popup form to write the "ToDo" portion of a record. Once I close the popup form I would like !!.!. to be refreshed with the new information that I just wrote in the popup form that I...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.