PC Review


Reply
Thread Tools Rate Thread

confirmation window once user clicks submit on user from

 
 
sam
Guest
Posts: n/a
 
      7th Jul 2009

Hi All,

I have designed an excel from with text fields, radio buttons and check
boxes. I also have a Submit button that populates the user details in excel
sheet.
What I want is: Is it possible to display a confirmation window with user
inputs once a user clicks "Submit" button on the original form? Confirmation
window with "Edit" and "Confirm & Submit" Buttons, where user is navigated to
the original form if "Edit" is clicked or the user inputs are populated into
the excel sheet if "Confirm & Submit" is clicked.

Thanks in Advance
 
Reply With Quote
 
 
 
 
Smallweed
Guest
Posts: n/a
 
      7th Jul 2009

Yes, make another form with these buttons on it.

Make sure the original Submit button doesn't include Unload Me (which makes
the first form forget everything) but uses Me.Hide before opening the second
form. The Edit button in the second form can then use Form1.Show and you'll
see the first form as it was just before you clicked Submit (you would
probably use Unload Me from the second form as there's nothing there to
remember).

Hope that makes sense.

"sam" wrote:

> Hi All,
>
> I have designed an excel from with text fields, radio buttons and check
> boxes. I also have a Submit button that populates the user details in excel
> sheet.
> What I want is: Is it possible to display a confirmation window with user
> inputs once a user clicks "Submit" button on the original form? Confirmation
> window with "Edit" and "Confirm & Submit" Buttons, where user is navigated to
> the original form if "Edit" is clicked or the user inputs are populated into
> the excel sheet if "Confirm & Submit" is clicked.
>
> Thanks in Advance

 
Reply With Quote
 
Smallweed
Guest
Posts: n/a
 
      7th Jul 2009

Yes, make another form with these buttons on it.

Make sure the original Submit button doesn't include Unload Me (which makes
the first form forget everything) but uses Me.Hide before opening the second
form. The Edit button in the second form can then use Form1.Show and you'll
see the first form as it was just before you clicked Submit (you would
probably use Unload Me from the second form as there's nothing there to
remember).

Hope that makes sense.


"sam" wrote:

> Hi All,
>
> I have designed an excel from with text fields, radio buttons and check
> boxes. I also have a Submit button that populates the user details in excel
> sheet.
> What I want is: Is it possible to display a confirmation window with user
> inputs once a user clicks "Submit" button on the original form? Confirmation
> window with "Edit" and "Confirm & Submit" Buttons, where user is navigated to
> the original form if "Edit" is clicked or the user inputs are populated into
> the excel sheet if "Confirm & Submit" is clicked.
>
> Thanks in Advance

 
Reply With Quote
 
sam
Guest
Posts: n/a
 
      7th Jul 2009

Thaks for the Help Smallweed,

Should I code into Submit_Click() event in the original form to launch the
second form with 'Edit' and 'Confirm and submit' buttons? If yes, How can I
code it such that It launches the second userform. I am not as good with VB.
Also Its ok if the user inputs are not displayed in the new form, Just a
confirmation window with 'Edit' button(navigate back to original form with
data populated) and 'Confirm and Submit' button (saves the inputs) should be
fine

Thanks in Advance.

"Smallweed" wrote:

> Yes, make another form with these buttons on it.
>
> Make sure the original Submit button doesn't include Unload Me (which makes
> the first form forget everything) but uses Me.Hide before opening the second
> form. The Edit button in the second form can then use Form1.Show and you'll
> see the first form as it was just before you clicked Submit (you would
> probably use Unload Me from the second form as there's nothing there to
> remember).
>
> Hope that makes sense.
>
> "sam" wrote:
>
> > Hi All,
> >
> > I have designed an excel from with text fields, radio buttons and check
> > boxes. I also have a Submit button that populates the user details in excel
> > sheet.
> > What I want is: Is it possible to display a confirmation window with user
> > inputs once a user clicks "Submit" button on the original form? Confirmation
> > window with "Edit" and "Confirm & Submit" Buttons, where user is navigated to
> > the original form if "Edit" is clicked or the user inputs are populated into
> > the excel sheet if "Confirm & Submit" is clicked.
> >
> > Thanks in Advance

 
Reply With Quote
 
Smallweed
Guest
Posts: n/a
 
      7th Jul 2009

(I'm having problems with this forum today so apologies if there are suddenly
a load of duplicate messages from me!)

I've suddenly thought: I'm assuming you are creating a UserForm from Insert
menu in VB Editor (rather than a form in the s/sheet itself). If so, the
button code in Form1 should be:

Sub Submit_Click()
Form2.Show
Me.Hide
End Sub

Then you make a second UserForm called Form2 with your 'Edit' and 'Confirm
and submit' buttons. Then:

Sub Edit_Click()
Form1.Show
Unload Me
End Sub

Sub Confirm_and_Submit_Click()
(your code)
Unload Me
End Sub


"sam" wrote:

> Thaks for the Help Smallweed,
>
> Should I code into Submit_Click() event in the original form to launch the
> second form with 'Edit' and 'Confirm and submit' buttons? If yes, How can I
> code it such that It launches the second userform. I am not as good with VB.
> Also Its ok if the user inputs are not displayed in the new form, Just a
> confirmation window with 'Edit' button(navigate back to original form with
> data populated) and 'Confirm and Submit' button (saves the inputs) should be
> fine
>
> Thanks in Advance.
>
> "Smallweed" wrote:
>
> > Yes, make another form with these buttons on it.
> >
> > Make sure the original Submit button doesn't include Unload Me (which makes
> > the first form forget everything) but uses Me.Hide before opening the second
> > form. The Edit button in the second form can then use Form1.Show and you'll
> > see the first form as it was just before you clicked Submit (you would
> > probably use Unload Me from the second form as there's nothing there to
> > remember).
> >
> > Hope that makes sense.
> >
> > "sam" wrote:
> >
> > > Hi All,
> > >
> > > I have designed an excel from with text fields, radio buttons and check
> > > boxes. I also have a Submit button that populates the user details in excel
> > > sheet.
> > > What I want is: Is it possible to display a confirmation window with user
> > > inputs once a user clicks "Submit" button on the original form? Confirmation
> > > window with "Edit" and "Confirm & Submit" Buttons, where user is navigated to
> > > the original form if "Edit" is clicked or the user inputs are populated into
> > > the excel sheet if "Confirm & Submit" is clicked.
> > >
> > > Thanks in Advance

 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I display a confirmation dialog when the user tries to delete a row? When the user selects a row in the DataGridView and hits the delete key Amit Microsoft VB .NET 1 8th Aug 2006 05:07 PM
How do I display a confirmation dialog when the user tries to delete a row? When the user selects a row in the DataGridView and hits the delete key Amit Microsoft C# .NET 0 8th Aug 2006 05:02 PM
vbscript msgbox confirmation when user clicks Cancel button Bucky Microsoft ASP .NET 1 19th May 2005 10:17 PM
Show user defined commandbarButton when the user right clicks on Contact Venugopal Microsoft Outlook Program Addins 3 19th Nov 2003 12:49 PM
ClosePreview doesn't fire when the user clicks the X to close the window Robert Microsoft Word New Users 3 25th Aug 2003 06:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:02 AM.