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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Should be a very easy question

Status
Not open for further replies.

chris9

Programmer
Feb 11, 2003
32
US
I want my form to look up a columns value and if the column is empty insert a character(example: "n"). I've tried to alter the table with a sql statement but that doesn't seem to be working. I know this should be fairly simple but I'm not having any luck.

Thanks so much
 

Use this as the basis for your AfterUpdate control. You will need to change the table name and field name and key column, but the structure is there:

Code:
If IsNull (Dlookup ("Value", "Field", "Key='value'")) Then
  DoCmd.RunSQL "Update table set key='n' where key='value'"
end if

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top