2 Replies - 334 Views - Last Post: 17 February 2010 - 11:13 PM Rate Topic: -----

#1 Guest_REmm*


Reputation:

Help outputting data to a MsgBox

Posted 17 February 2010 - 10:18 PM

Hey guys im coding a customer detail form and need help with one little thing. I have a command button that asks the following questions:

Private Sub CmdAddDetails_Click()
TxtName.Text = InputBox(" Please enter your name.")
TxtAddress.Text = InputBox("Please enter your address.")
TxtPhone.Text = InputBox("Please enter your Phone number.")



Basically what i would like is to display the data including a global variable called intCost in a MsgBox as the customer clicks the Exit Button. So something like this:

Details: "name:
Address:
Phone Number:
Total Cost:

Thank-you for your order."

Is this possible and if not , what is the next best thing to this?

Thanks guys

Is This A Good Question/Topic? 0

Replies To: Help outputting data to a MsgBox

#2 RenderYourDream  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 9
  • Joined: 30-January 10

Re: Help outputting data to a MsgBox

Posted 17 February 2010 - 10:59 PM

first you have to store values into global variables
like
gName = txtName.text


then at exit click you can use global var like

msgbox "Details: " & vbcrlf & "name:" & gName  & vbcrlf & "Address:" & gAddress


and so on
Was This Post Helpful? 0
  • +
  • -

#3 Guest_Guest*


Reputation:

Re: Help outputting data to a MsgBox

Posted 17 February 2010 - 11:13 PM

View PostRenderYourDream, on 17 February 2010 - 09:59 PM, said:

first you have to store values into global variables
like
gName = txtName.text


then at exit click you can use global var like

msgbox "Details: " & vbcrlf & "name:" & gName  & vbcrlf & "Address:" & gAddress


and so on


I shall give this a try thanks man.
Was This Post Helpful? 0

Page 1 of 1