"name" is not a file variable (Error 226)

A variable or an array was used where a file variable (table field) is required. For more information, see Fields, or Working with Fields and Records.