jaywhy13
01-11-2005, 09:40 PM
Okay I have a table where it has Autonumber field for one of the id's.... :(
I'm designing a messaging system right.... is for 6 users. Members of the public are given the choice to send the users of the system mail. When a member of the public sends a message to a user. The message is created and entered into the "userMessage" table which stores the message id, header, date, body so on.... then i need the message id to put it in the "userInbox" the table that stores username and the message id. This table tells exactly what is in each user's inbox. :confused:
So how do i get the message id that the autonumber created without using another SELECT statement which I think is gonna be extremely inefficient, because what would I put for the where clause? all the other data?
:eek: :eek:
I'm designing a messaging system right.... is for 6 users. Members of the public are given the choice to send the users of the system mail. When a member of the public sends a message to a user. The message is created and entered into the "userMessage" table which stores the message id, header, date, body so on.... then i need the message id to put it in the "userInbox" the table that stores username and the message id. This table tells exactly what is in each user's inbox. :confused:
So how do i get the message id that the autonumber created without using another SELECT statement which I think is gonna be extremely inefficient, because what would I put for the where clause? all the other data?
:eek: :eek: