1 (edited by kkalgidim 2015-02-12 15:19:11)

Topic: i need help for relational search for combobox

hi, i try to explain the problem on image attached in rar with project files


everyting works fine but i couldnt add the employee combox for filter projects.

PROJECT table
TASK table
EMPLOYEE table


project has many tasks
task has an employee

what i want is to find all projects employees work on it

Re: i need help for relational search for combobox

Hello,


Usually My Visual Database automatically associates the tables for search, but in your project algorithm was wrong.
It's not your mistake.
(The algorithm has decided to seach for a employee across the table "durum" because it has a connection with table "personel")


To fix it, I just added empty calulated field to gorev.calc_fix and added this calulated field to the button for search on Form1



The fixed project attached.

Post's attachments

Attachment icon projetakip_fixed.zip 178.48 kb, 513 downloads since 2015-02-12 

Dmitry.

Re: i need help for relational search for combobox

employees.dateofbirth,
employees.photo,
employees.text,
employees.bi_seria,
employees.bi_nuamrul,
employees.eliberatde,
employees.unutipul,
employees.unumodel,
employees.seriaaparatului,
employees.NRaviz,
employees.dataaviz,
employees.doitipul,
employees.doimodeul,
employees.doiconfiguratia,
employees.doiserieaparat,
employees.doiaviz,
employees.doidataaviz,
employees.reprezentant,
employees.configuratia,
employees.file,
employees.dataeliberare,
employees.plucru,
employees.calitate,
employees.Functia,
employees.nraparate,
employees.seriefiscala,
employees.agent,
tblagent.agent

FROM employees

LEFT OUTER JOIN tblagent ON tblagent.id = firstname.id_tblagent


What am I doing wrong ?

Re: i need help for relational search for combobox

Try this:

SELECT
employees.dateofbirth,
employees.photo,
employees.text,
employees.bi_seria,
employees.bi_nuamrul,
employees.eliberatde,
employees.unutipul,
employees.unumodel,
employees.seriaaparatului,
employees.NRaviz,
employees.dataaviz,
employees.doitipul,
employees.doimodeul,
employees.doiconfiguratia,
employees.doiserieaparat,
employees.doiaviz,
employees.doidataaviz,
employees.reprezentant,
employees.configuratia,
employees.file,
employees.dataeliberare,
employees.plucru,
employees.calitate,
employees.Functia,
employees.nraparate,
employees.seriefiscala,
employees.agent,
tblagent.agent

FROM employees

LEFT OUTER JOIN tblagent ON tblagent.id = employees.id_tblagent
Dmitry.

Re: i need help for relational search for combobox

receive this error

Post's attachments

Attachment icon err1.png 9.62 kb, 307 downloads since 2015-02-12 

Re: i need help for relational search for combobox

attach project


Thanks

Re: i need help for relational search for combobox

casedemarcat wrote:

attach project


Thanks

I don't see your attached project.
Please, send me your project to support@drive-software.com

Dmitry.

Re: i need help for relational search for combobox

Hello, in another first please excuse my English. Secondly I want to thank you for support (I hope to remain the same when the software will be very famous as it will be )


I am attaching the project and try to explain what you want from your life. : )


employees and agent  tables and I want to get information from both tables ... In one single report


and want to be able to choose in column 1 - 2 Pendants brand and model in column 3 to have a predefined number (eg 140 )

example, if 1 + 2 = 0140
                 If 1+ 3 = 0364


something like



PS . I'm interested if you can pay by money gram or western I have an account in dollars.

Thank You


I sent you and email to

Re: i need help for relational search for combobox

casedemarcat
Unfortunately I still have not received your project.

Dmitry.

Re: i need help for relational search for combobox

I send the project on email tanks

Re: i need help for relational search for combobox

I got your email, but without the project.

Dmitry.

12 (edited by casedemarcat 2015-02-13 07:20:37)

Re: i need help for relational search for combobox

Maybe now

I think I've attached the project .

Thanks for your patience .

Have a wonderful day   smile

Post's attachments

Attachment icon test 1.7z 278.24 kb, 501 downloads since 2015-02-13 

Re: i need help for relational search for combobox

casedemarcat
I made report for you (button "Print All 2")
and fixed some other errors.


But I don't understand your second question.


Fixed project attached.

Post's attachments

Attachment icon test 1_fixed.zip 197.32 kb, 534 downloads since 2015-02-13 

Dmitry.

Re: i need help for relational search for combobox

Thank  s


I'm interested if you can pay by money gram or western I have an account in dollars.
Thank You

15 (edited by casedemarcat 2015-02-13 14:19:34)

Re: i need help for relational search for combobox

Second question, I have a combo box manufacturer, that would tie some device models, devices that have a unique identification number and a date. How can I do that.



What did you do to me is ok just want to be able to select a single record from the database.




I tried something down butonu declaratie de instalare


I'm interested if you can pay by money gram or western I have an account in dollars.
Thank You





SELECT
employees.dateofbirth,
employees.photo,
employees.text,
employees.bi_seria,
employees.bi_nuamrul,
employees.eliberatde,
employees.unutipul,
employees.unumodel,
employees.seriaaparatului,
employees.NRaviz,
employees.dataaviz,
employees.doitipul,
employees.doimodeul,
employees.doiconfiguratia,
employees.doiserieaparat,
employees.doiaviz,
employees.doidataaviz,
employees.reprezentant,
employees.configuratia,
employees.file,
employees.dataeliberare,
employees.plucru,
employees.calitate,
employees.Functia,
employees.nraparate,
employees.seriefiscala,
employees.agent,
tblagent.agent

FROM employees

LEFT OUTER JOIN tblagent ON tblagent.id = employees.id_tblagent

Re: i need help for relational search for combobox

@casedemarcat

Honestly speaking, nobody is able to understand what you are talking about paying something, maybe there is a translation issue...

17 (edited by casedemarcat 2015-02-13 23:43:35)

Re: i need help for relational search for combobox

------------------------------------------------------------------------------------------------

i want to show agent.agent and employees.dateofbirth,
employees.photo,
employees.text,
employees.bi_seria,
employees.bi_nuamrul,
employees.eliberatde,
employees.unutipul,
employees.unumodel,
employees.seriaaparatului,
employees.NRaviz,
employees.dataaviz,
employees.doitipul,
employees.doimodeul,
employees.doiconfiguratia,
employees.doiserieaparat,
employees.doiaviz,
employees.doidataaviz,
employees.reprezentant,
employees.configuratia,
employees.file,
employees.dataeliberare,
employees.plucru,
employees.calitate,
employees.Functia,
employees.nraparate,
employees.seriefiscala,
employees.agent,
tblagent.agent                                         


in a report with selected data   how can i do that ?




-------------------

RIGHT SOLUTION ! THANKS ALL

SELECT * FROM  employees

LEFT OUTER JOIN agent ON agent.id = employees.id_agent
WHERE employees.id=$id

Re: i need help for relational search for combobox

casedemarcat
I added button "Print selected record"
No need to use SQL for create report, instead, I used the button with the action "Report"



Second question, I have a combo box manufacturer, that would tie some device models, devices that have a unique identification number and a date. How can I do that.

what exactly is your question?



I'm interested if you can pay by money gram or western I have an account in dollars.

You want me to pay you money? )

Post's attachments

Attachment icon test 1_fixed.zip 197.46 kb, 507 downloads since 2015-02-14 

Dmitry.

Re: i need help for relational search for combobox

I'm interested if you can pay by money gram or western I dont have an account in dollars.

Re: i need help for relational search for combobox

casedemarcat
Do you want to buy a license for My Visual Database, using money gram or WesternUnion?

Dmitry.

Re: i need help for relational search for combobox

Yes  yes






da da

Re: i need help for relational search for combobox

casedemarcat
I sent you an email information about payment.

Dmitry.

Re: i need help for relational search for combobox

One more guestion   
i have a field date of birth and i want to see who is born between
Date 1 and date 2

How can i do that ?

Re: i need help for relational search for combobox

casedemarcat
DateTimePicker have property Filter, where you can select type of filter.


I added in your project two DateTimePickers for searching between Date1 and Date2

Post's attachments

Attachment icon test 1_fixed.zip 193.62 kb, 508 downloads since 2015-02-15 

Dmitry.

Re: i need help for relational search for combobox

Thank You        work great