E
ediaz
Hello people, I have a problem whit the
functionality "Insert a database"
Ok, I have a database access whit two tables, my people
(name,Id) and my bills (bills_name,id_name)
I have mail merge in word for make letters for the names
and I want to show the bills in a table.
After of use mail merge for the names I use Insert a
database for create one table whit the bills for every
name. But I find the problem.
If I use a { DATABASE \d "D:\\bills\\bills_clients.mdb"
\c "QUERY bills " \s "SELECT * FROM [bills] WHERE
id_name='<id>' " \h }
This run, but show me a table with bills and id_name. I
don't want show id_name and for this reason I try some
types of query:
"SELECT bills_name FROM [bills] WHERE id_name='<id>' " <-
Ignore me, show me the two fields.
"SELECT bills.bills_name FROM [bills] WHERE id_name='<id>'
<-Error "word can't open data source"
Ok, I change the system and use one query(of access)
called bills_only_field.
{ DATABASE \d "D:\\bills\\bills_clients.mdb" \c "QUERY
bills_only_field " \s "SELECT * FROM [bills_only_field]
WHERE id_name='<id>' " \h }
Error again, word can't analyze the options of query SQL..
My English is bad, And the errors are in Spanish, but this
is the approximate translation..
What are I doing bad?, my be use VBA?, whit msquery
happends the same, where can I search some examples of
DATABASE?.
Thanks for all
functionality "Insert a database"
Ok, I have a database access whit two tables, my people
(name,Id) and my bills (bills_name,id_name)
I have mail merge in word for make letters for the names
and I want to show the bills in a table.
After of use mail merge for the names I use Insert a
database for create one table whit the bills for every
name. But I find the problem.
If I use a { DATABASE \d "D:\\bills\\bills_clients.mdb"
\c "QUERY bills " \s "SELECT * FROM [bills] WHERE
id_name='<id>' " \h }
This run, but show me a table with bills and id_name. I
don't want show id_name and for this reason I try some
types of query:
"SELECT bills_name FROM [bills] WHERE id_name='<id>' " <-
Ignore me, show me the two fields.
"SELECT bills.bills_name FROM [bills] WHERE id_name='<id>'
<-Error "word can't open data source"
Ok, I change the system and use one query(of access)
called bills_only_field.
{ DATABASE \d "D:\\bills\\bills_clients.mdb" \c "QUERY
bills_only_field " \s "SELECT * FROM [bills_only_field]
WHERE id_name='<id>' " \h }
Error again, word can't analyze the options of query SQL..
My English is bad, And the errors are in Spanish, but this
is the approximate translation..
What are I doing bad?, my be use VBA?, whit msquery
happends the same, where can I search some examples of
DATABASE?.
Thanks for all