Hi guys,
As some background info I work in a small business with my brother and father and get a lot of our orders via email. We had a database on access 2010 made a little while back by an "access developer" that i have been adding too and tweaking ever since with my very limited knowledge.
I'm very new to VBA and have spent the entire day trying to accomplish something I am sure is very simple if i knew what i was doing !! :banghead:
What I'm trying to accomplish is some sort of 'Order Confirmation' (filled with the info i have entered in my order form and sub_form fields) that i can copy and paste as a reply to their email-order.
I have taken 2 failed approaches so far:
1) I used a report to display the info
Private Sub Command103_Click()
DoCmd.OpenReport "Order Confirmed", acViewReport, , "OrderID = " & Me!OrderID
End Sub
This worked fine until the information was copied and pasted into outlook which upon doing so changed the column titles and layout
2) I used another form with a text box to fill with the data entered on the Order form
DoCmd.OpenForm "frm_Order_Confirmation"
[Forms]![frm_Order_Confirmation]![txtConfirmation_Text] = "Ref.:" & " " & [txtCustomer_Order_Reference_Number] & [vbNewLine] & "Item No.:" & " " & [cboProductID].[Column](1)
I got stuck here when trying to reference the data in the sub form...
Also each order can have one or more colours and i have no idea how to allow for this ?
Any help would be so greatly appreciated and if you have any questions please feel free to ask me
Thanks in advanced guys
J
As some background info I work in a small business with my brother and father and get a lot of our orders via email. We had a database on access 2010 made a little while back by an "access developer" that i have been adding too and tweaking ever since with my very limited knowledge.
I'm very new to VBA and have spent the entire day trying to accomplish something I am sure is very simple if i knew what i was doing !! :banghead:
What I'm trying to accomplish is some sort of 'Order Confirmation' (filled with the info i have entered in my order form and sub_form fields) that i can copy and paste as a reply to their email-order.
I have taken 2 failed approaches so far:
1) I used a report to display the info
Private Sub Command103_Click()
DoCmd.OpenReport "Order Confirmed", acViewReport, , "OrderID = " & Me!OrderID
End Sub
This worked fine until the information was copied and pasted into outlook which upon doing so changed the column titles and layout
2) I used another form with a text box to fill with the data entered on the Order form
DoCmd.OpenForm "frm_Order_Confirmation"
[Forms]![frm_Order_Confirmation]![txtConfirmation_Text] = "Ref.:" & " " & [txtCustomer_Order_Reference_Number] & [vbNewLine] & "Item No.:" & " " & [cboProductID].[Column](1)
I got stuck here when trying to reference the data in the sub form...
Also each order can have one or more colours and i have no idea how to allow for this ?
Any help would be so greatly appreciated and if you have any questions please feel free to ask me
Thanks in advanced guys
J