Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save info to table that is not the control source 1

Status
Not open for further replies.

Herdrich

Technical User
Dec 30, 2008
83
US
Hello,

Im trying to setup a button that saves information to a different table than the control source. Have no clue where to start or what to use for this any ideas? Any help would be much appreciated.

Thanks,
Glenn
 
You may use either a Recordset or the DoCmd.RunSQL method.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Got it thanks

DoCmd.RunSQL "INSERT INTO Log ( CAC, [Badge Number], [Badge Color], Rank, LastName, FirstName, MI, WorkNumber, Unit, MakeModel, RegNumber, TimeOut, TimeIn, Type )
SELECT CAC AS Expr1, [Badge Number] AS Expr2, [Badge Color] AS Expr3, Rank AS Expr4, [LastName] AS Expr5, [FirstName] AS Expr6, MI AS Expr7, [WorkNumber] AS Expr8, Unit AS Expr9, [MakeModel] AS Expr10, [RegNumber] AS Expr11, [TimeOut] AS Expr12, [TimeIn] AS Expr13, Type AS Expr14
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top