If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
previous field
Hi,
I have this function on a datasheet form. It doesnt work. After i click Ok, the focus doesnt stay with the RQTY field, it actually moves to the next record. Is there something like go back to last focus? Private Sub RQTY_LostFocus() If Me.R = -1 Then 'Yes we want to ship this line MsgBox ("Must Enter Qty other thant '0'") Me.RQTY.SetFocus If Me.RQTY = 0 Then Me.RQTY.SetFocus Else End If Else End If End Sub |
#2
|
|||
|
|||
In the form properties set the Cycle Records Property to Current Record.
B Comrie http://www.codewidgets.com "Bre-x" wrote in message ... Hi, I have this function on a datasheet form. It doesnt work. After i click Ok, the focus doesnt stay with the RQTY field, it actually moves to the next record. Is there something like go back to last focus? Private Sub RQTY_LostFocus() If Me.R = -1 Then 'Yes we want to ship this line MsgBox ("Must Enter Qty other thant '0'") Me.RQTY.SetFocus If Me.RQTY = 0 Then Me.RQTY.SetFocus Else End If Else End If End Sub |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Field not in Field List: What to do? | Jerry Crosby | Using Forms | 3 | November 18th, 2004 03:19 PM |
Access 2000, autonumber fields | Zyberg74 | General Discussion | 3 | November 17th, 2004 04:24 PM |
entering previous record field value | Gonzalo | Using Forms | 1 | September 9th, 2004 03:38 PM |
Field list greyed out when trying to add an option group | Tony | Using Forms | 1 | July 1st, 2004 03:40 AM |