kah
06-19-2007, 10:29 PM
I need to be able to place field data in a msgbox.
I have a table that will only ever hold one record.
Lets say its tbl_company_info
Fields are company_name, company_phone etc
I need to be able to display tbl_company_info.company_name and tbl_company_info.company_phone in msgbox text.
eg
Dim comp_msg, comp_style, comp_title, comp_response
comp_msg = "Company name is : " [ this is where I want tbl_company_info.company_name] & vbCrLf & "Company phone number is: " [this is where I want tbl_company_info.company_phone]
comp_style = vbYesNoCancel + vbInformation
comp_title = "Check company information"
comp_response = MsgBox(comp_msg, comp_style, comp_title)
Sorry if its a silly question!!
I have a table that will only ever hold one record.
Lets say its tbl_company_info
Fields are company_name, company_phone etc
I need to be able to display tbl_company_info.company_name and tbl_company_info.company_phone in msgbox text.
eg
Dim comp_msg, comp_style, comp_title, comp_response
comp_msg = "Company name is : " [ this is where I want tbl_company_info.company_name] & vbCrLf & "Company phone number is: " [this is where I want tbl_company_info.company_phone]
comp_style = vbYesNoCancel + vbInformation
comp_title = "Check company information"
comp_response = MsgBox(comp_msg, comp_style, comp_title)
Sorry if its a silly question!!