Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assigning a default value

Status
Not open for further replies.

thirty4d

MIS
Feb 1, 2001
61
US

Hello,

I have a form that creates a recordset. I know that not every record will have a value in a particular control, but I don't want to leave a control blank.

Example:

Private Sub Form_Current()
If Me![txtInsert] = "NA" Then
Me![txtInsertDesc].DefaultValue = "NA"
End If
End Sub

But it's not working?

Thanks
 
I think the default value will only show up when you first open a blank record. Maybe you just want to set the value?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top