Help

JonyBravo

Registered User.
Local time
Today, 11:28
Joined
Jan 17, 2006
Messages
89
Hi there!
I'm using the following query code in my database:

INSERT INTO tblPlanner ( RACF, [Date], [Day Capacity] )
SELECT tblStaff.RACF, [forms]![tblLeader].[txtday1] AS Expr1, tblStaff.[Daily Capability]
FROM tblStaff
WHERE (((tblStaff.TeamName) Like [forms]![tblLeader].[txtTeamName]))
WITH OWNERACCESS OPTION;

Can someone tell me I to write the same in VB SQL?

Thanks
 
JonyBravo said:
INSERT INTO tblPlanner ( RACF, [Date], [Day Capacity] )
SELECT tblStaff.RACF, [forms]![tblLeader].[txtday1] AS Expr1, tblStaff.[Daily Capability]
FROM tblStaff
WHERE (((tblStaff.TeamName) Like [forms]![tblLeader].[txtTeamName]))
WITH OWNERACCESS OPTION;

Done ?? Tho you should look into NAMING CONVENTIONS... You shouldnt use spaces in column names AND you shouldnt use Date as a column name...
 

Users who are viewing this thread

Back
Top Bottom