T
ThomasK via AccessMonster.com
I have an append query that takes information from unbound textboxes on a
form and creates new records in a table. The problem Im having (and I suspect
that its because I dont know what Im doing) is that the query will create
several new records as opposed to just one. If my table has 10 records in it,
then the append query creates 10 new records. So the table ends up with 20
records. I just want to add one new record not several.
And before you ask, I dont want to use bound fields on the report, because I
dont want the record to be added to the table unless the user confirms it by
hitting a command button.
This is the query::
INSERT INTO tblAddresses ( StreetNumber, Direction, StreetName, Suite,
BuildingNumber )
SELECT [Forms]![QBF_Form]![WhatStreetNumber] AS [Street Number], [Forms]!
[QBF_Form]![WhatDirection] AS Direction, [Forms]![QBF_Form]![WhatStreetName]
AS [Street Name], [Forms]![QBF_Form]![WhatSuite] AS Suite, [Forms]![QBF_Form]!
[WhatBuildingNumber] AS [Building Number]
FROM tblAddresses;
Thanks for the help,
form and creates new records in a table. The problem Im having (and I suspect
that its because I dont know what Im doing) is that the query will create
several new records as opposed to just one. If my table has 10 records in it,
then the append query creates 10 new records. So the table ends up with 20
records. I just want to add one new record not several.
And before you ask, I dont want to use bound fields on the report, because I
dont want the record to be added to the table unless the user confirms it by
hitting a command button.
This is the query::
INSERT INTO tblAddresses ( StreetNumber, Direction, StreetName, Suite,
BuildingNumber )
SELECT [Forms]![QBF_Form]![WhatStreetNumber] AS [Street Number], [Forms]!
[QBF_Form]![WhatDirection] AS Direction, [Forms]![QBF_Form]![WhatStreetName]
AS [Street Name], [Forms]![QBF_Form]![WhatSuite] AS Suite, [Forms]![QBF_Form]!
[WhatBuildingNumber] AS [Building Number]
FROM tblAddresses;
Thanks for the help,