473,387 Members | 1,687 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,387 software developers and data experts.

Opening and Closing Popup Form

43
[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 13742
Seth Schrock
2,965 Expert 2GB
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
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
Opening and Closing Popup Form would be a good title.
Mar 19 '13 #4
Seth Schrock
2,965 Expert 2GB
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.