|
||||||||||||||||
![]() |
|
|
|||||||




![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Scooby Newbie
Member#: 143011
Join Date: Mar 2007
Chapter/Region:
MAIC
Location: Arlington - VA
Vehicle:2012 128i M-sport Black |
This is probably really easy, but here is the deal. I have an input form and it has one field where you input a $ value. The engineering guys like to pretend this field isn't there...I want to remind them to fill it out when they don't.
So, when I click the exit button, if that field is blank, I want a message to pop up and say please put something in there. Quote:
Final_Price_$ is the name of the input box btw. Help would be great Thanks Ben
* Registered users of the site do not see these ads.
|
|
|
|
|
|
|
#2 |
|
Scooby Newbie
Member#: 101713
Join Date: Nov 2005
Chapter/Region:
RMIC
Vehicle:2001 F-150 Work Truck White |
I'm not totally up on my VB, but I think that "IsNull(Final_Price_$)" is not the right logical test.
|
|
|
|
|
|
#3 |
|
Scooby Specialist
Member#: 22958
Join Date: Aug 2002
Chapter/Region:
SWIC
Vehicle:2008 She cheat me and taked my salts!-Crees |
Code:
Private Sub CloseForm_Click() _________________________________ If Final_Price_$ = "" Or IsNull(Final_Price_$) Then MsgBox "Need pricePrice" Goto EndSubWithoutClosing End If __________________________________ On Error GoTo Err_CloseForm_Click DoCmd.Close Exit_CloseForm_Click: Exit Sub Err_CloseForm_Click: MsgBox Err.Description Resume Exit_CloseForm_Click EndSubWithoutClosing: End Sub |
|
|
|
|
|
#4 | |
|
Scooby Newbie
Member#: 143011
Join Date: Mar 2007
Chapter/Region:
MAIC
Location: Arlington - VA
Vehicle:2012 128i M-sport Black |
Quote:
![]() |
|
|
|
|
|
|
#5 |
|
Scooby Specialist
Member#: 22958
Join Date: Aug 2002
Chapter/Region:
SWIC
Vehicle:2008 She cheat me and taked my salts!-Crees |
Then try this:
Code:
Private Sub CloseForm_Click() _________________________________ If Final_Price_$ = "" Then MsgBox "Need pricePrice" Goto EndSubWithoutClosing Else if IsNull(Final_Price_$) Then MsgBox "Need pricePrice" Goto EndSubWithoutClosing End If End If __________________________________ On Error GoTo Err_CloseForm_Click DoCmd.Close Exit_CloseForm_Click: Exit Sub Err_CloseForm_Click: MsgBox Err.Description Resume Exit_CloseForm_Click EndSubWithoutClosing: End Sub |
|
|
|
|
|
#6 |
|
Scooby Specialist
Member#: 22958
Join Date: Aug 2002
Chapter/Region:
SWIC
Vehicle:2008 She cheat me and taked my salts!-Crees |
Or this:
Code:
Private Sub CloseForm_Click() _________________________________ If Final_Price_$ = "" Or Final_Price_$ Is Null Then MsgBox "Need pricePrice" Goto EndSubWithoutClosing End If __________________________________ On Error GoTo Err_CloseForm_Click DoCmd.Close Exit_CloseForm_Click: Exit Sub Err_CloseForm_Click: MsgBox Err.Description Resume Exit_CloseForm_Click EndSubWithoutClosing: End Sub |
|
|
|
|
|
#7 |
|
Scooby Newbie
Member#: 32810
Join Date: Feb 2003
Chapter/Region:
MWSOC
Vehicle:2006 Impreza 2.5i Sandstone Metallic |
Is the input box connected to a table to which you input that data youre requesting?
If so just go into the table and make that field a required field and access will generate an automated prompt no to leave that field empty. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I can't figure this out | Power steering pump problem. | Hyelude | Factory 2.0L Turbo Powertrain | 2 | 07-27-2009 12:56 PM |
| Overheating at low revs. New Thermostat, HG, and waterpump. I can't figure this out. | Surestick | Normally Aspirated Powertrain | 48 | 07-16-2009 05:38 PM |
| Oh crap i can't figure this out and I'm teaching it tomorrow | Gerkins31 | Off-Topic | 32 | 10-09-2007 11:44 AM |
| ok im sick of this noise, please somebody help me figure this out. | BoneStock03 | Transmission (AT/MT) & Driveline | 2 | 06-19-2006 02:23 PM |
| arggggg! Can't figure this out! (recording streaming vid) | biggreen96 | Off-Topic | 4 | 10-27-2005 05:52 PM |