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

Open form in a New Window using a command button

I have an Access 2002 main form ("Project Update Form") with a subform ("sfEZMilestone").

What I want is to somehow change the subform to a command button so when a user clicks the command button, it will open the subform in a new window (like a pop up window). There, the user can update and edit the fields as necessary then close the window and return to the main form.

The Link Child Field is ID and the Link Master Field is ID.

Regards,

- JM
Feb 27 '08 #1
2 6805
jeffstl
432 Expert 256MB
This is going to come down to handling your Form_Load() in each forms and Form_Unload to get the kind of navigation you want.

The basics of this is below though, and I think there are even wizards that will generate this by placing a command button on a form, you can tell it that you want to perform Form Operations with that button.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command2_Click()
  2. On Error GoTo Err_Command2_Click
  3.  
  4.     Dim stDocName As String
  5.     Dim stLinkCriteria As String
  6.  
  7.     stDocName = "Form1"
  8.     DoCmd.OpenForm stDocName, , , stLinkCriteria
  9.  
  10. Exit_Command2_Click:
  11.     Exit Sub
  12.  
  13. Err_Command2_Click:
  14.     MsgBox Err.Description
  15.     Resume Exit_Command2_Click
  16.  
  17. End Sub
  18.  
Feb 27 '08 #2
This is exactly whay I am trying to do without any luck! How did you get on?

Cheers
Mar 25 '08 #3

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

Similar topics

2
by: George Medlock | last post by:
What is the code to open a form at the click of a command button?
3
by: dibakar | last post by:
Hello I want to open a window using Window.showModalDialog once i click inside of a TextBox.And that window need to come just under the TextBox,so that it seems to a same control. So,what...
9
by: rdade22 | last post by:
Hi, I'm new so try to bare with me. I'm using access 2000 and I created a database where the user is prompted to click on a command button and the info that was put on the form is sent to a table....
5
by: dgrabuloff | last post by:
i am inputting records using a form. how do i put a command button on the form that will copy the record i just input----sometimes i have the same record that needs to be put in 3 or 4 times and i...
4
by: sirimanna | last post by:
hi, Is any one can help me to open files in my computer(for an example: some word document)using command button... i want to open file's using my vb programme..but i can't do it...can any one...
2
by: tejavenkat | last post by:
Hi, I have one scenario i.e Download as csv is there it is a command button when we click on this the save dialog box should be open,Am using javascript how can we do this by using by javascrpt...
0
by: ajittondwalkar | last post by:
i am developing a application in asp.net with vb and ajax implemented. in this application i want to open a report into new window. i had given in print button click event ...
9
by: eberry707 | last post by:
I have created a form and want to open the sub form with an on click command button. Is this possible? The only way I can view the subform is to have it embedded into the form. I want to have it...
4
by: Arivu PHP | last post by:
I have to open new window without clicking link or url.. i need to open autometically when entered the inside of my webpage. can any one help this task..
4
beacon
by: beacon | last post by:
Hi everybody, I have a main form, frmDeficiency, that has a tab control, deficiencyTabControl, that has a subform, fsubEpisodeDetail, on page 2 of the tab control. I also have a command button...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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
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,...

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.