Question: I have a subform which displays the results from a saved query.
Now I want to change to another query.

```
Me.SF_Results.Form.RecordSource = "NewQuery"

```

It works but the columns which were in the old query and are not in the new query are still displayed and show #Name? in every cell.

How can I update the columns for the new query?

I have found a solution here which involves setting the recordsource to an empty string and then to the new query, but it not working for me.
Also they use "Query.NewQuery" there for some to me unknown reason.

Answer: 
```
dependent: :destroy

```

is alternate syntax for:

```
:dependent => :destroy

```

It's [new in Ruby 1.9](http://nuclearsquid.com/writings/ruby-1-9-what-s-new-what-s-changed/#new-stuff-in-ruby-19).

`:dependent`, `:destroy` and `:bonus_card` are all [symbols](http://www.robertsosinski.com/2009/01/11/the-difference-between-ruby-symbols-and-strings/).
it is new syntax in ruby 1.9

```
   dependent: :destroy

```

which is alternative of this

```
  :dependent => :destroy

```

i think you are new in ruby because experienced person has idea about it and if you scaffold then dependent: :destroy this code is generated by rails by default now.

:dependent ,:destroy and :bonus\_card are all symbols.Read about symbols these are very usefull