Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert Command

Status
Not open for further replies.

bdjb

Technical User
Oct 29, 2002
292
US
I'm pulling data from a strange database, there is a FieldNum id that denotes what data another field is (If Fieldnum = 31 then Answertext = State, Fieldnum = 92, Answertext = County). Is there a way add criteria to the Insert command such that if FieldNum = 92 it populates the County field etc?

Thanks in advacne!
 
You just need to do an update command after you do you inserts. Then just update the appropriate fields.

Simi
 
Update table
set State =Answertext
where Fieldnum = 31

update table
Set County=Answertext
where Fieldnum = 92

Simi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top