Advertisement

05.20.2008 at 05:11PM PDT, ID: 23419283
[x]
Attachment Details

How would you insert records into a new table using SQL ?

Asked by zimmer9 in Microsoft ADP, SQL Query Syntax, SQL Server 2005

I am using Access 2003 to create an Access application using Access as the front end with VBA code and SQL
Server as the back end database.

If you were to add records to a new table titled tblDtlDateRanges with just 2 fields titled
1) RngID  (this is an Identity field)
2) DateRange

with the following values:

RngID          DateRange
----------      ----------------------------------------------
1                  LESS THAN 6 MONTHS OLD
2                  06 MONTHS TO 12 MONTHS OLD
3                  12 MONTHS TO 24 MONTHS OLD
4                  24 MONTHS TO 36 MONTHS OLD
5                  GREATER THAN 36 MONTHS OLD
 
How would you create a SQL statement assigned to the variable string strSQL to do load these values into the new table named tblDtlDateRanges ?

strSQL = "???"Start Free Trial
[+][-]05.20.2008 at 05:31PM PDT, ID: 21611369

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 06:04PM PDT, ID: 21611481

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 06:07PM PDT, ID: 21611493

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 06:53PM PDT, ID: 21611651

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 06:58PM PDT, ID: 21611677

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 07:09PM PDT, ID: 21611718

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 07:40PM PDT, ID: 21611805

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 09:01PM PDT, ID: 21612065

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 09:05PM PDT, ID: 21612071

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 09:17PM PDT, ID: 21612101

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft ADP, SQL Query Syntax, SQL Server 2005
Sign Up Now!
Solution Provided By: chapmandew
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628