Standard picture in a field

A

alvin Kuiper

Hi

I have this in form_current
Billede46.Picture = Billede.Value

To get the path from billede.value to Billede46.Picture and then show the
picture
its work allright but if Billede.Value is emthy then i get an error,
is there not away where i can say
if billede.value is emthy then

I have try if billede.value = "" but dosn't work

regards
Alvin
 
B

Bob Hairgrove

Hi

I have this in form_current
Billede46.Picture = Billede.Value

To get the path from billede.value to Billede46.Picture and then show the
picture
its work allright but if Billede.Value is emthy then i get an error,
is there not away where i can say
if billede.value is emthy then

I have try if billede.value = "" but dosn't work

Try this instead:

If Not IsNull(Billede) Then
Billede46.Picture = Billede
EndIf

The Value property is the default for textbox controls, so you don't
have to write it explicitly.
 
A

alvin Kuiper

Thanks
Its working

Alvin


Bob Hairgrove said:
Try this instead:

If Not IsNull(Billede) Then
Billede46.Picture = Billede
EndIf

The Value property is the default for textbox controls, so you don't
have to write it explicitly.
 
Top