R
Ryan
I'm writing this in VB code on the double click for a field in my
form. What I get when I run this is an error that says
"Type-decleration character does not match declared data type." I'm
trying to get something returned that says abc2004-04-07. Ahy help is
appreciated! Thanks!
Private Sub TextName_DblClick(Cancel As Integer)
Dim dtString As String
If Me.NewRecord Then
dtString = format$([date], "yyyy-mm-dd")
[TextName] = [artist_abv] & dtString
End If
End Sub
form. What I get when I run this is an error that says
"Type-decleration character does not match declared data type." I'm
trying to get something returned that says abc2004-04-07. Ahy help is
appreciated! Thanks!
Private Sub TextName_DblClick(Cancel As Integer)
Dim dtString As String
If Me.NewRecord Then
dtString = format$([date], "yyyy-mm-dd")
[TextName] = [artist_abv] & dtString
End If
End Sub