Here is my code:
Private Sub Primary_Pymt_LostFocus()
Dim sBillingFee As String
Dim sClaimType As String 'Contains the Claim type
Dim aQueryResults(0 To 10) As String
Dim iPatientSSNum As Integer
sBillingFee = Primary_Pymt * 0.065
iPatientSSNum = PatientSS#
Me.Billing_Svc_Fee1.Value = sBillingFee
Me.Net_to_CDG1 = Primary_Pymt - sBillingFee
'if Global
'Me.Net_to_Dr1 = Primary_Pymt / 2
'aQueryResults =
'DoCmd.RunSQL "SELECT PaymentType From CustomerTable where CustomerID=" & "1234"
'DoCmd.RunSQL ("Select Claim_Type,Primary_Pymt from Tests where [PatientSS#]= '" & Forms!whatevertheformname is[PatientSS#] &+"'"
db.Execute ("Select Claim_Type,Primary_Pymt from Tests where PatientSSNum=" & Form![PatientSSNum])
End Sub
From here I enter a blank line at the end of the Dim statements. I then start to type:
Dim xyz as DAO
but when I press the space bar after as msaccess.exe creats an error and is shut down completely. Any suggestions?
Private Sub Primary_Pymt_LostFocus()
Dim sBillingFee As String
Dim sClaimType As String 'Contains the Claim type
Dim aQueryResults(0 To 10) As String
Dim iPatientSSNum As Integer
sBillingFee = Primary_Pymt * 0.065
iPatientSSNum = PatientSS#
Me.Billing_Svc_Fee1.Value = sBillingFee
Me.Net_to_CDG1 = Primary_Pymt - sBillingFee
'if Global
'Me.Net_to_Dr1 = Primary_Pymt / 2
'aQueryResults =
'DoCmd.RunSQL "SELECT PaymentType From CustomerTable where CustomerID=" & "1234"
'DoCmd.RunSQL ("Select Claim_Type,Primary_Pymt from Tests where [PatientSS#]= '" & Forms!whatevertheformname is[PatientSS#] &+"'"
db.Execute ("Select Claim_Type,Primary_Pymt from Tests where PatientSSNum=" & Form![PatientSSNum])
End Sub
From here I enter a blank line at the end of the Dim statements. I then start to type:
Dim xyz as DAO
but when I press the space bar after as msaccess.exe creats an error and is shut down completely. Any suggestions?