Live Scores
Shareware
Movie Stars
Programming
Multimedia
Mobile
Database
Enterprise
in
Btrieve
Database
(Entire Site)
Questions and answers to issues related to Software: Business, Database, Firewalls, Office, Graphics, Security, System, Server.
»
Database
»
4GL
»
Btrieve
»
How to enter table data via code
How to enter table data via code
How does this need to be altered to enter data into fields named [Recordset] and [Action] in the table named tbRecordsetTransactions ?
DoCmd.OpenTable "tbRecordsetTransactions",
acViewNormal, acAdd
Me!Recordset = "rsSpouseRecord"
Me!Action = "Open"
DoCmd.Close acTable, "tbRecordsetTransactions",
acSaveYes
Solution: How to enter table data via code
Dim dbs As DAO.Database
Dim rst As DAO.Recordset, rc As Long
Dim sql As String
sql = "tbRecordsetTransactions"
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset(sql)
rst.Add
rst!Recordset = "rsSpouseRecord"
rst!Action = "Open"
rst.Update
rst.Close
dbs.Close
Set rst = Nothing
Set dbs = Nothing
Popular Tags
Tags:
access
Access 2007
access 2007 using a wild card
ASP
ASP VB
asp.net
btrieve
CSS
database
error
Excel
Extremely slow MySQL SELECT query - table with an INNER JOIN to the same table
file
HTML
Javascript
Microsoft
MySQL
ODBC
optimization
peachtree
pervasive
php
php if else end
queries
query
SQL
SQL Server 2005
wild card
windows 7
Browse All Tags