PC Review


Reply
Thread Tools Rate Thread

Append Query Type Mismatch (Apologies if this is a duplicate post)

 
 
Fev
Guest
Posts: n/a
 
      5th Oct 2011
I can run this append query, as a query without errors. I have copied
this into code for a command button, from the SQL view and get a Type
mismatch error:

SQL1 = "INSERT INTO tblLSMDetail ( ProjectLSM, ProjectArea, ProjectID,
ProjectEthnic, ProjectGender, ProjectAgeGroup )" & _
"SELECT tblProjectLSM.ProjectLSMID, tblProjectArea.ProjectAreaID,
tblProjectLSM.ProjectID, tblProjectEthnic.ProjectEthnicID,
tblProjectGender.ProjectGenderID,
tblProjectAgeGroup.ProjectAgeGroupID" & _
"FROM tblProjectArea, tblProjectLSM, tblProjectEthnic,
tblProjectGender, tblProjectAgeGroup" & _
"WHERE (((tblProjectLSM.ProjectID)=[Forms]![frmSampleBuilder]!
[ProjectID]))"

I would greatly appreciate some help.
Thanks
Heather
 
Reply With Quote
 
 
 
 
Fev
Guest
Posts: n/a
 
      5th Oct 2011
On Oct 5, 2:08*am, Fev <hgos...@worldonline.co.za> wrote:
> I can run this append query, as a query without errors. *I have copied
> this into code for a command button, from the SQL view and get a Type
> mismatch error:
>
> SQL1 = "INSERT INTO tblLSMDetail ( ProjectLSM, ProjectArea, ProjectID,
> ProjectEthnic, ProjectGender, ProjectAgeGroup )" & _
> "SELECT tblProjectLSM.ProjectLSMID, tblProjectArea.ProjectAreaID,
> tblProjectLSM.ProjectID, tblProjectEthnic.ProjectEthnicID,
> tblProjectGender.ProjectGenderID,
> tblProjectAgeGroup.ProjectAgeGroupID" & _
> "FROM tblProjectArea, tblProjectLSM, tblProjectEthnic,
> tblProjectGender, tblProjectAgeGroup" & _
> "WHERE (((tblProjectLSM.ProjectID)=[Forms]![frmSampleBuilder]!
> [ProjectID]))"
>
> I would greatly appreciate some help.
> Thanks
> Heather


This is a duplicate - my apologies - my laptop "was hanging" after
posting :-(
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:56 PM.