Results 1 to 4 of 4
  1. #1
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,820

    Insert

    Hi Everyone



    I am trying to carry out an On Click Event to insert a number of records into another Table.

    This line is giving me an error:-

    Code:
    80    lngManufactured = Me.Manufactured
    The error message I get is this:-
    Click image for larger version. 

Name:	error.JPG 
Views:	20 
Size:	18.2 KB 
ID:	45928

    How would I modify this line to deal with Null Values ?

    Any help appreciated.

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Maybe try
    Code:
    lngManufactured = Nz(Me.Manufactured,0)
    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,820
    Hi Vlad

    That fixed that just great
    Thanks

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 05-11-2019, 11:49 AM
  2. Replies: 7
    Last Post: 05-10-2019, 10:40 PM
  3. Replies: 1
    Last Post: 08-29-2016, 07:50 PM
  4. Replies: 3
    Last Post: 05-27-2015, 01:04 PM
  5. INSERT query: insert new data only
    By drh in forum Access
    Replies: 2
    Last Post: 04-04-2014, 05:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums