I where to create a report from a mdf database-file.
I have named the columns 1 - 70 for the simplicity when reusing the same code in several methods.
But when I am to create the report is says that the column name is not cls compliant?

How do I work myself around that problem without having to redesign the whole system.

I have used existing tables to create the whole design.

Recommended Answers

Most bad idea to use a single numerical one.

Jump to Post

All 2 Replies

Most bad idea to use a single numerical one.

It is better to not use numeric column names but if you must then I think you can reference them by enclosing you column name in apostrophes, like so: '10'

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.