Link to home
Create AccountLog in
Avatar of deer777
deer777Flag for United States of America

asked on

MS Access vba Insert data into SQL Server table based on textbox value

MS Access vba create query to Insert data into SQL Server table based on textbox value
Avatar of ste5an
ste5an
Flag of Germany image

What is your concrete problem?

E.g.

CurrentDb.Execute "INSERT INTO myTable ( Payload ) VALUES ( '" & Replace(Nz(txtTextBox.Value, ""), "'", "''") & "');"

Open in new window

Avatar of deer777

ASKER

Have an Access database with linked sql server table.  

In Access I have a main form with a textbox that allows user to input number into which will populate another form datasheet (from linked SQL table).  Need to dump data into another linked SQL table from the data defined by the textbox value in Access by writing a stored procedure.  just need to know how to define this textbox value in SQL Server query
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer