gerard1979
MIS
I have the follow code
For Each varpositie In cboArtikels.ItemsSelected
tempArtikelNaam = cboArtikels.Column(2, varpositie)
tempEenheid = cboArtikels.Column(4, varpositie)
tempArtID = cboArtikels.Column(0, varpositie)
DoCmd.OpenForm "frmPrijsAantal"
strSQL = <....?
docmd.runsql strSQL
Next varpositie
My idea was to run through a few records and make insert Queries based on info in the form frmPrijsAantal. Is there a way to 'stop' the code after open the form and fill 2 fields on the form and run the SQLcommand and that several times?
Now the code is under a click-event, maybe choose another way or something?
hope somebody can help me,
Gerard
For Each varpositie In cboArtikels.ItemsSelected
tempArtikelNaam = cboArtikels.Column(2, varpositie)
tempEenheid = cboArtikels.Column(4, varpositie)
tempArtID = cboArtikels.Column(0, varpositie)
DoCmd.OpenForm "frmPrijsAantal"
strSQL = <....?
docmd.runsql strSQL
Next varpositie
My idea was to run through a few records and make insert Queries based on info in the form frmPrijsAantal. Is there a way to 'stop' the code after open the form and fill 2 fields on the form and run the SQLcommand and that several times?
Now the code is under a click-event, maybe choose another way or something?
hope somebody can help me,
Gerard