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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL / fill empty fields in a Tabel

Status
Not open for further replies.

MarkWright

Programmer
Jan 7, 2003
66
DE
Hello, I am working with a ADP Datenbank and am trying to fill some empty fields in a table. I have five five fields. One field is only partly filled with information. If a field is empty then information from another field is to be entered into the field. I did the same thing in a mdb datenbank and it worked fine. The problem is that the wenn query that I used does not work in a adp Datenbank.
Does anyone have an Idea ??
thanks for your time
Mark
my code so far->

As

SELECT KHKArtikel.Artikelnummer,
PBS_KHKFHArtikelHelp.ArtikelnummerNeu ,
KHKArtikel.Bezeichnung1, KHKArtikel.Artikelgruppe,
KHKGruppen.Bezeichnung AS AGBezeichnung
FROM KHKArtikel LEFT OUTER JOIN
KHKGruppen ON
KHKArtikel.Artikelgruppe = KHKGruppen.Gruppe LEFT OUTER JOIN
PBS_KHKFHArtikelHelp ON
KHKArtikel.Artikelnummer = PBS_KHKFHArtikelHelp.Artikelnummer
WHERE (KHKGruppen.Typ = '40004') and

wenn isnull (@PBS_KHKFHArtikelHelp.ArtikelnummerNeu ) then
@PBS_KHKFHArtikelHelp.ArtikelnummerNeu = @KHKArtikel.Artikelnummer

return
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top