|
-
Aug 20th, 2005, 08:50 AM
#1
Thread Starter
Member
[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. 
-
Aug 20th, 2005, 02:33 PM
#2
Re: combining fields
 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:
Private Sub Command1_Click()
MsgBox Me.Text0 & ", " & Me.Combo2
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."
-
Aug 20th, 2005, 09:23 PM
#3
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|