Results 1 to 3 of 3

Thread: [RESOLVED] combining fields

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2005
    Location
    NTU, Singapore
    Posts
    42

    Resolved [RESOLVED] combining fields

    I have to confess.. I am getting lazy using this forum. I haven't done the necessary search for a solution to this problem.. but I really hope that some one can give me a quick solution Thanks

    I have two fields in my form. One is the month field and another is a combo box for a year field. But my underlying table has only a single field called ReportMonth which has data stored in the format "August, 2005"

    I want to combine the user input from my two fields so as to write on the table above in the required format. Is there an easy way to use. So far I have been using the controlsource property in my fields without going into VBA. So I will appreciate a solution without using recordset. Thanks
    When you know you can do it, there is no power on earth that can stop you.

  2. #2
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: combining fields

    Quote Originally Posted by rochak
    I have to confess.. I am getting lazy using this forum. I haven't done the necessary search for a solution to this problem.. but I really hope that some one can give me a quick solution Thanks

    I have two fields in my form. One is the month field and another is a combo box for a year field. But my underlying table has only a single field called ReportMonth which has data stored in the format "August, 2005"

    I want to combine the user input from my two fields so as to write on the table above in the required format. Is there an easy way to use. So far I have been using the controlsource property in my fields without going into VBA. So I will appreciate a solution without using recordset. Thanks
    Try this:

    VB Code:
    1. Private Sub Command1_Click()
    2.     MsgBox Me.Text0 & ", " & Me.Combo2
    3. End Sub
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2005
    Location
    NTU, Singapore
    Posts
    42

    Re: combining fields

    Thanks's mark, It works.
    When you know you can do it, there is no power on earth that can stop you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width