I feel generous today, so here you go. 2 mins on Google could have got
you that.
http://support.microsoft.com/default...en-us%3B815629
MRW wrote:
> Thanks for the feedback!
>
> I'll be honest. I'm not familiar with the @@IDENTITY. Can you give a
> quick example on how it is used (VB)?
>
> Thank you for the help!
>
> Sarat Pediredla wrote:
> > Based on that fact that you mention that the UserID is an auto
> > incremented field, I am assuming this is an IDENTITY and the SELECT
> > @@IDENTITY in your SQL should do it for you.
> >
> > MRW wrote:
> > > Quick question for anybody who can help:
> > >
> > > I have two tables:
> > >
> > > tblUsers
> > > --------
> > > UserID
> > > Name
> > >
> > > tblPhones
> > > ---------
> > > PhoneID
> > > UserID
> > > PhoneNumber
> > >
> > > If I'm collecting the name and the phone numbers (can be multiple
> > > numbers) in one form, what's the best way of placing it in the
> > > database? The question revolves around the UserID and making sure the
> > > tblPhones.UserID = tblUsers.UserID
> > >
> > > Thanks for any help!