Dick7Access
Dick S
- Local time
 - Today, 03:31
 
- Joined
 - Jun 9, 2009
 
- Messages
 - 4,338
 
I made a db years ago for my wife that picked area code out of phone number from our main db.  Now she wants me to query a area code to see where it is located.  How do I query from here"
	
	
	
		
 
		Code:
	
	
	  Private Sub Form_Current()
  Dim Sname As String
  Dim Result As String
  Sname = Me.ch_ph
  Me.newAreaCode = Left$(Sname, 5)
  End Sub