I am new new to VBA. I am trying to insert data from one form to a table. I have run into a problem with the following code:
strSQL = "Insert into [KitInfo](KitID, KitType, ExpirationDate) values(Forms!CreateNewKit!KitID, 'HS2000', dmin([ExpirationDate]))"
I am trying to insert a minimum date from the current form to the "ExpirationDate" column table KitInfo. Is there a way of calculating the minimum date and then inserting that into the "ExpirationDate" column? I was thinking nesting a subquery but I couldn't figure out how to do it. I have tried changing "values" to "select", but then this query doesn't run at all.