Variant is MANDATORY if you want to manage SQL null values, period
isnull(), nz ?
if it's so important, why isn't Variant a field type? Yes Nulls are a part of RDBs, that doesn't mean you should use the largest variable imaginable to handle them.
The job of a DBA and Developer are by far different. DBA's job is to design the back end system and keep it up, as well as make sure the data is delivered/deliverable to the application and data is recieved/recievable from the the client. This includes security of the back end.
(sometimes you have a SQL developer between the DBA and the application developer)
The developer builds the application that interfaces with the objects the DBA has built. Whether they be tables, or more structured stored procedures, functions, and views.
Many of us span both jobs. In doing so we take bits and pieces from each and confuse where the line really is.
Only VB uses variants to such extreme. If you're using .NET, you don't have the same luxury.
This arguement can be the same as implicit and explicit declarations...
I would say as a DBA perhaps I'm not the best with Access. I'm more familiar with MSSQL2k/2k3 w/ .Net. I use wrappers for almost everything to avoid nulls.
I use access for applications that need to be supported by people that are less technically inclined, want to make their own reports, and/or need someone without a technical background to build adhoc query/functionality.
My general practice is to use the same model for programming for all languages. The broad brush of "lazy" use of a variant, was used in a broad statement. not all uses are incorrect, but most are.
The variant data type as an argument has always left me uncomfortable. Same with the "object" data type. Advanced programming techniques such as late binding and overloading are mimic'd using non-explicit type casted variables.
My general statement was for the general user, not for all. It is imo a good practice to avoid large variables when not necessary.
But I do concede that they are necessary at times. I just believe they are more often used when they aren't needed.
Randall Vollen
National City Bank Corp.