Hi all, I need a bit of help please.
I have this sqltext that works fine but I want to add another field that is not in the source table, but in a box on the screen.
sqltext = "insert into tbl_Kett_Teilnehmer_Vorauszahlung([tbl_tour_id], [tbl_teilnehmner_id])" & _
" select tbl_Teilnehmer.[tbl_tour_id], tbl_Teilnehmer.[id]" & _
" from tbl_Teilnehmer " & _
" where tbl_tour_id =" & Me.Toursuchen
DoCmd.RunSQL sqltext
LIKE THIS:
sqltext = "insert into tbl_Kett_Teilnehmer_Vorauszahlung([tbl_tour_id], [tbl_teilnehmner_id], tbl_voraus_id)" & _
" select tbl_Teilnehmer.[tbl_tour_id], tbl_Teilnehmer.[id], (here a value on my screen) me.vorausID" & _
" from tbl_Teilnehmer " & _
" where tbl_tour_id =" & Me.Toursuchen
DoCmd.RunSQL sqltext
Can anyone tell me how to do this?
Thanks in anticipation
Marion
I have this sqltext that works fine but I want to add another field that is not in the source table, but in a box on the screen.
sqltext = "insert into tbl_Kett_Teilnehmer_Vorauszahlung([tbl_tour_id], [tbl_teilnehmner_id])" & _
" select tbl_Teilnehmer.[tbl_tour_id], tbl_Teilnehmer.[id]" & _
" from tbl_Teilnehmer " & _
" where tbl_tour_id =" & Me.Toursuchen
DoCmd.RunSQL sqltext
LIKE THIS:
sqltext = "insert into tbl_Kett_Teilnehmer_Vorauszahlung([tbl_tour_id], [tbl_teilnehmner_id], tbl_voraus_id)" & _
" select tbl_Teilnehmer.[tbl_tour_id], tbl_Teilnehmer.[id], (here a value on my screen) me.vorausID" & _
" from tbl_Teilnehmer " & _
" where tbl_tour_id =" & Me.Toursuchen
DoCmd.RunSQL sqltext
Can anyone tell me how to do this?
Thanks in anticipation
Marion