W
wwwredback
Dear All,
I am yet again in need of help. Basically I have the attached database that I
require some guidance on please.
If Trade is selected from combo box AccountType in the Orders Form then it
displays the prices from the Trade Price in the products table.
If Account is selected from combo box AccountType in the Orders Form then it
displays the prices from the Unit Price in the products table.
If DIY is selected from combo box AccountType in the Orders Form then it
displays the prices from the DIY Price in the products table.
Also on the above it will input the TRADE / ACCOUNT / DIY into the
AccountType field in the Orders Table
Now to add to all of this I need the ability to then add the Customer Name
and Address and record this entry in the Orders table only if Trade or DIY is
selected. The Account has already given their name and address so this
doesn’t need to be inputted.
I have tried the following code and doesn't seem to work:
If Me.AccountType = "Account" Then
Me!OrdersSubform.Form.RecordSource = "Query1"
ElseIf Me.AccountType = "Trade" Then
Me!OrdersSubform.Form.RecordSource = "Query2"
Else
Me!OrdersSubform.Form.RecordSource = "Query3"
End If
I can attach the database if I am allowed to do so if it helps.
Hope someone can help me and thanks in advance,
Thanks a million.
James.
I am yet again in need of help. Basically I have the attached database that I
require some guidance on please.
If Trade is selected from combo box AccountType in the Orders Form then it
displays the prices from the Trade Price in the products table.
If Account is selected from combo box AccountType in the Orders Form then it
displays the prices from the Unit Price in the products table.
If DIY is selected from combo box AccountType in the Orders Form then it
displays the prices from the DIY Price in the products table.
Also on the above it will input the TRADE / ACCOUNT / DIY into the
AccountType field in the Orders Table
Now to add to all of this I need the ability to then add the Customer Name
and Address and record this entry in the Orders table only if Trade or DIY is
selected. The Account has already given their name and address so this
doesn’t need to be inputted.
I have tried the following code and doesn't seem to work:
If Me.AccountType = "Account" Then
Me!OrdersSubform.Form.RecordSource = "Query1"
ElseIf Me.AccountType = "Trade" Then
Me!OrdersSubform.Form.RecordSource = "Query2"
Else
Me!OrdersSubform.Form.RecordSource = "Query3"
End If
I can attach the database if I am allowed to do so if it helps.
Hope someone can help me and thanks in advance,
Thanks a million.
James.