rotschreck
Programmer
Problem 1<br>
<br>
Using a combobox for Mining_Division, I am trying to write code to make a select case function that will send a letter value to Division_Letter.<br>
<br>
Private Sub Mining_Division_AfterUpdate(Cancel As Integer)<br>
Select Case Mining_Division<br>
Case Kenora<br>
Division_Letter = K<br>
Case "Larder Lake"<br>
Division_Letter = "L"<br>
End Select<br>
End Sub<br>
<br>
I have attempted to use the quote marks. I have attempted to remove the quote marks.<br>
<br>
Suggestion?<br>
<br>
Problem 2<br>
<br>
Using Date_Entered, I am trying to send the year involved to Year.<br>
<br>
Private Sub Date_Received_AfterUpdate(Cancel As Integer)<br>
Year = Year(Date_Received)<br>
End Sub<br>
<br>
What is wrong here?<br>
<br>
Thanks <p> <br><a href=mailto: > </a><br><a href= Eclectic Page</a><br>
<br>
Using a combobox for Mining_Division, I am trying to write code to make a select case function that will send a letter value to Division_Letter.<br>
<br>
Private Sub Mining_Division_AfterUpdate(Cancel As Integer)<br>
Select Case Mining_Division<br>
Case Kenora<br>
Division_Letter = K<br>
Case "Larder Lake"<br>
Division_Letter = "L"<br>
End Select<br>
End Sub<br>
<br>
I have attempted to use the quote marks. I have attempted to remove the quote marks.<br>
<br>
Suggestion?<br>
<br>
Problem 2<br>
<br>
Using Date_Entered, I am trying to send the year involved to Year.<br>
<br>
Private Sub Date_Received_AfterUpdate(Cancel As Integer)<br>
Year = Year(Date_Received)<br>
End Sub<br>
<br>
What is wrong here?<br>
<br>
Thanks <p> <br><a href=mailto: > </a><br><a href= Eclectic Page</a><br>