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

Multiple record saves

Status
Not open for further replies.

hrg

Programmer
Jan 8, 2009
46
US
In my database i want to save a record. I can do this but what i want to do is when the user inputs information into the database via an entry form there is a text field at the end of the form which when a number is entered i want to save the information the same number of times inputted in the form.

e.g.

Form Name : FrmclientEntry

Name : John
Address : 50 stoney road
Address : high range
Address :
city : Birmingham
Post Code : 234524

Number of itmes : 4

So what i would want now is all this information to be saved 4 times in one table e.g

Table Name = Details

autonumnber Name Address etc

1 John 50 Stoney road
2 John 50 Stoney road
3 John 50 Stoney road
4 John 50 Stoney road

How can i do this?

 
I'm not sure why you'll like to do so, but one way could be using a For..Next statement.

Saying that your text box for number of times is called txtNmbTm,

Dim i as integer

For i = 1 to txtNmbTm
'Save your data
Next i

Hope that helps.

Z
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top