Alex Gordon
Alex Gordon

Reputation: 60731

ms-access: brackets around a listbox?

these are both listboxes. why does one have brackets around it?

[relationslct].Value = other_relations_lst.Value

Upvotes: 1

Views: 204

Answers (1)

HansUp
HansUp

Reputation: 97101

Brackets are required for names which could confuse Access ... say if the name includes spaces or punctuation characters. And brackets also help to avoid confusing Access if the name is the same as a reserved word (like Date, for example).

However, I don't see any need for brackets around relationslct. They don't cause any harm, but I prefer to get rid of them whenever they're not actually needed.

If your question includes "how did they get in there in the first place?" ... I got no clue.

Upvotes: 3

Related Questions