snicker
Registered User.
- Local time
- Today, 18:30
- Joined
- Aug 8, 2003
- Messages
- 91
Code
__________________________________________________
Private Sub Command28_Click()
Dmaxoutput = DMax("FileNum", "ClientFiles", "ClientNum = Forms![Transfer Property Wizard]![cboNewClientNumber] AND [CatNum] = '702.48'")
NewParcelNumber = 1
Address1 = Me.txtProperty_Address
Address2 = Me.txtCSZ
FYOC = Me.txtFirstProtestYear
NewClientsName = DLookup("IIf(IsNull(ClientInfo!FirstNameTwo),ClientInfo!FirstNameOne & ' ' & ClientInfo!FirstNameTwo & ' ' & ClientInfo!LastName,ClientInfo!FirstNameOne & ' and ' & ClientInfo!FirstNameTwo & ' ' & ClientInfo!LastName)", "ClientInfo", "[ClientNum] = Forms![Transfer Property Wizard]!cboNewClientNumber")
PINCount = DCount("[PIN]", "REPINInfo", "[PropertyAddy] = Forms![BCBClients]![BCBRETaxSubForm].Form![txtID] ")
NewClientsName = DLookup("IIf(IsNull(ClientInfo!FirstNameTwo),ClientInfo!FirstNameOne & ' ' & ClientInfo!FirstNameTwo & ' ' & ClientInfo!LastName,ClientInfo!FirstNameOne & ' and ' & ClientInfo!FirstNameTwo & ' ' & ClientInfo!LastName)", "ClientInfo", "[ClientNum] = Forms![Transfer Property Wizard]!cboNewClientNumber")
NewFileNumber = IIf(DCount("ClientNum", "ClientFiles", "ClientNum=Forms![Transfer Property Wizard]!cboNewClientNumber") > 9, Forms![Transfer Property Wizard]!cboNewClientNumber & "." & DCount("FileNum", "ClientFiles", "ClientNum = Forms![Transfer Property Wizard]![cboNewClientNumber]") + 1, Forms![Transfer Property Wizard]!cboNewClientNumber & ".0" & DCount("FileNum", "ClientFiles", "ClientNum = Forms![Transfer Property Wizard]![cboNewClientNumber]") + 1)
NewParcelNumber = IIf(DCount("CustKey", "REPropertyAddy", "CustKey = Forms![Transfer Property Wizard]!cboNewClientNumber") > 9, NewFileNumber & "." & DCount("CustKey", "REPropertyAddy", "CustKey = Forms![Transfer Property Wizard]!cboNewClientNumber") + 1, NewFileNumber & ".0" & DCount("CustKey", "REPropertyAddy", "CustKey = Forms![Transfer Property Wizard]!cboNewClientNumber") + 1)
Select Case iresponse
iresponse = MsgBox(Prompt:="Are you sure you want to transfer the following" & vbNewLine & _
"information to " & NewClientsName & ":" & vbNewLine & vbNewLine & _
"New File Number: " & NewFileNumber & vbNewLine & _
"Address: " & Address1 & vbNewLine & _
" " & Address2 & vbNewLine & _
"Township: " & Township & vbNewLine & _
"County: " & County & vbNewLine & _
"First year of protest: " & FYOC & vbNewLine & _
"PIN(s): " & PINCount & " accociated PIN(s)", _
Buttons:=vbYesNo + vbExclamation, Title:="Transfer Property to " & NewClientsName)
Select Case iresponse
Case vbYes
Case vbNo
End Select
End Sub
__________________________________________________
This code works fine without the Select Case. What I am trying to accomplish is to have the user presented with all of the info for a new record. I would like the user to be able to say yes or no. Is my syntax wrong? Anyone know what I'm missing?
Thx in advance
Mike
__________________________________________________
Private Sub Command28_Click()
Dmaxoutput = DMax("FileNum", "ClientFiles", "ClientNum = Forms![Transfer Property Wizard]![cboNewClientNumber] AND [CatNum] = '702.48'")
NewParcelNumber = 1
Address1 = Me.txtProperty_Address
Address2 = Me.txtCSZ
FYOC = Me.txtFirstProtestYear
NewClientsName = DLookup("IIf(IsNull(ClientInfo!FirstNameTwo),ClientInfo!FirstNameOne & ' ' & ClientInfo!FirstNameTwo & ' ' & ClientInfo!LastName,ClientInfo!FirstNameOne & ' and ' & ClientInfo!FirstNameTwo & ' ' & ClientInfo!LastName)", "ClientInfo", "[ClientNum] = Forms![Transfer Property Wizard]!cboNewClientNumber")
PINCount = DCount("[PIN]", "REPINInfo", "[PropertyAddy] = Forms![BCBClients]![BCBRETaxSubForm].Form![txtID] ")
NewClientsName = DLookup("IIf(IsNull(ClientInfo!FirstNameTwo),ClientInfo!FirstNameOne & ' ' & ClientInfo!FirstNameTwo & ' ' & ClientInfo!LastName,ClientInfo!FirstNameOne & ' and ' & ClientInfo!FirstNameTwo & ' ' & ClientInfo!LastName)", "ClientInfo", "[ClientNum] = Forms![Transfer Property Wizard]!cboNewClientNumber")
NewFileNumber = IIf(DCount("ClientNum", "ClientFiles", "ClientNum=Forms![Transfer Property Wizard]!cboNewClientNumber") > 9, Forms![Transfer Property Wizard]!cboNewClientNumber & "." & DCount("FileNum", "ClientFiles", "ClientNum = Forms![Transfer Property Wizard]![cboNewClientNumber]") + 1, Forms![Transfer Property Wizard]!cboNewClientNumber & ".0" & DCount("FileNum", "ClientFiles", "ClientNum = Forms![Transfer Property Wizard]![cboNewClientNumber]") + 1)
NewParcelNumber = IIf(DCount("CustKey", "REPropertyAddy", "CustKey = Forms![Transfer Property Wizard]!cboNewClientNumber") > 9, NewFileNumber & "." & DCount("CustKey", "REPropertyAddy", "CustKey = Forms![Transfer Property Wizard]!cboNewClientNumber") + 1, NewFileNumber & ".0" & DCount("CustKey", "REPropertyAddy", "CustKey = Forms![Transfer Property Wizard]!cboNewClientNumber") + 1)
Select Case iresponse
iresponse = MsgBox(Prompt:="Are you sure you want to transfer the following" & vbNewLine & _
"information to " & NewClientsName & ":" & vbNewLine & vbNewLine & _
"New File Number: " & NewFileNumber & vbNewLine & _
"Address: " & Address1 & vbNewLine & _
" " & Address2 & vbNewLine & _
"Township: " & Township & vbNewLine & _
"County: " & County & vbNewLine & _
"First year of protest: " & FYOC & vbNewLine & _
"PIN(s): " & PINCount & " accociated PIN(s)", _
Buttons:=vbYesNo + vbExclamation, Title:="Transfer Property to " & NewClientsName)
Select Case iresponse
Case vbYes
Case vbNo
End Select
End Sub
__________________________________________________
This code works fine without the Select Case. What I am trying to accomplish is to have the user presented with all of the info for a new record. I would like the user to be able to say yes or no. Is my syntax wrong? Anyone know what I'm missing?
Thx in advance
Mike