Skip to content
Advertisement

Tag: vba

Adding quotes into a sql query with Vba code

I can recover data from my database using vba, but I have to add quotes on the result of column (“value1”, “Value2”, “Value3” etc) But I do not know how to add quotes inside the SQL query, when using “…

Duplicate records in all related Access tables with new PK/FK assigned at button click event

I have an Access database with 5 tables: Report_Start holds PK on [Report_ID] CommSummary holds FK on [Report_ID] MRPCSummary holds FK on [Report_ID] SQESummary holds FK on [Report_ID] MEPSummary holds FK on [Report_ID] Report_ID links tables 2-4 to Table 1. User enters new report info on a user form (Report Date, Vendor, buyer, planner, etc), which is stored in Report_Start

Creating data entry form using button VBA

I am trying to create a basic data entry form, however, it is turning into more trouble than I anticipated.. I have the form created, now I am just trying to INSERT the data into the DB (TEST). I am receiving an “Object Required” error. Any suggestions? All of the txt boxes are verified to be correct. This is all

Access VBA update a column to concatenate

I was trying to update a column from a table in my Access database with following VBA code but it did not work as nothing happpened to that column. I would like to concatenate 5 columns into one. This update statement would work in SQL server but obviously not here. Any advice? Thanks. Answer Perhaps some fields are Null? Try

Advertisement