Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

concatenate dates

Status
Not open for further replies.
Oct 23, 2002
57
US
What I am trying to do is to have three comboboxes each respectively based on individual tables (day, month, year) and have the user select a day, select a month and select a year and concatenate(i think) the selections as a date and placed in a textbox for another tables field called date.

I have the three comboboxes designed and working what i tried in the text box is this

=[cboDay]& "/" & [cboMonth] & "/" & [cboYear]

what the textbox gives me is #name?

Any assistance is appreciated
 
I suspect that your problem is that you need to concatenate as follows:
=Me!cboDay & "/" & Me!cboMonth & "/" & Me!cboyear

search the help file for more info on the Me operator.
 
Sorry but that did not work. (if it helps any all three variables to concatentate/join whatever, are numbers (the day is 1-31, the month 1-12, the year 2000-2010).
I need to combine them to make a date to go into a date field.

I am currently trying to work out in vb code something but am still having no luck....

 
WHELP, I closed my db and did some other work then came back to my db and retried my original process and it worked.

I have no ideas as to why it didn't work before and now it does..anyway thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top