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!

Running a number of append queries based upon a number on a form

Status
Not open for further replies.

Craig0201

Technical User
Oct 11, 2000
1,261
GB
Hi,

I have a field on a form that will contain only integer values. Based upon this, I need to run an append query a number of times. Can this be done??? If so, how!!!!

All help much appreciated (as always!!! :))

Craig
 
something like this might work

Private Sub txtNoOfAppends_AfterUpdate()

Dim i As Integer
If IsNumeric( txtNoOfAppends) Then
For i = 1 To txtNoOfAppends
DoCmd.SetWarnings False
DoCmd.OpenQuery ("qryAppendName")
DoCmd.SetWarnings True
Next i
End If

End Sub


PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top