If... empty fields give MsgBox? (1 Viewer)

voskouee

Registered User.
Local time
Yesterday, 20:35
Joined
Jan 23, 2007
Messages
96
I have a table and i want to add a control that will give me a message box if there is an empty field.
i am running a process that fills a table.. after this is finished i want to add this control?

can i indicate which lines are empty?

any ideas? if i run an sql from vba for is null then what?

vba entirely?

please help!
 
Last edited:

Dennisk

AWF VIP
Local time
Today, 04:35
Joined
Jul 22, 2004
Messages
1,649
in the forms on current event use something like this.

If isnull(me!yourControl) then
msgbox "your message"
endif
 

voskouee

Registered User.
Local time
Yesterday, 20:35
Joined
Jan 23, 2007
Messages
96
i dont have any forms... its the table i want to search for empty fields.....
 

Dennisk

AWF VIP
Local time
Today, 04:35
Joined
Jul 22, 2004
Messages
1,649
select * from mytable where mycontrol is null

note the sublte difference in queries use is null, in code use isnull()

or if the data has been entered and then cleared out use the len function instead
select * from mytable where LEN(mycontrol)>0
 

Users who are viewing this thread

Top Bottom