|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
view current record..
Does anyone know if there is a way to write a record to a table, through a form then hit a command button that writes to the table and have it automatically pop a message box or another form or something that would show me the record number (created automatically) of the entry?
Currently, I fill in the form and hit the "update" command with the following code. It doesn't "do" anything per say, except write to the table.... my problem is that I need to know the number it assigns to the record instantaneously. Any ideas anyone? Private Sub cmdAdd_Click() On Error GoTo AddErr datPrimaryRS.Recordset.AddNew frmSort.Show Exit Sub AddErr: MsgBox Err.Description End Sub Kristin |
|
#2
|
|||
|
|||
|
How is the record number being assigned? Also, what type of database are you using? Depending on this information depends on how (and even) if you will be able to do this.
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > view current record.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|