301

(2 replies, posted in General)

Thank you Derek, Always very nice. I understood everything.

302

(2 replies, posted in General)

Hello everyone
It is possible to limit a table to one or a number of recod, which can be changed but cannot be inserted more than one or the number established.
Thank you and so many greetings.

303

(2 replies, posted in General)

Hi everyone,
how do you make a clickable label that is if you click on it open a site?
Thanks and best regards.

304

(7 replies, posted in General)

Excuse me so much, I had forgotten to put the combobox in the save button configuration.
I take this opportunity to ask if it is possible to upload more than one file for the same person referring to the phone book example.

305

(7 replies, posted in General)

Portrait, in the real project the problem also occurs with version 5.2
Look, the combobox is in the 'frmInserimentopc' form.
You can get there from the "Computer" tab by clicking on "Insert" in the attached project.

306

(7 replies, posted in General)

Sorry I thought I had attached it. I just found out that the problem is with the latest free version but not with 5.2

307

(7 replies, posted in General)

Hi everyone,
in a database I created two tables of which one is a dictionary. In the first, the one that is not a dictionary, I created the relationship with that dictionary. I associated a combobox to the relationship, when I go to save I get this error: NOT NULL constraint failed: A.id_B.
I can not understand. I enclose a mini project that explains the question. Thank you all

308

(23 replies, posted in General)

Thanks Derek very very very much. Now it seems to be perfect. Thank you also for styling corrections.

309

(23 replies, posted in General)

Hi Derek,
reviewing your changes in my project I discovered another big problem: the dates of 'arrivomerce' and 'Scadenza' can not go to 'frmFornitore' because it would put me the date when the customer is created and not when the goods entered that among other things, it can enter several times and therefore with different dates.
So, following the study of your changes, I moved the date fields in the 'Arrivo'Merce' table instead of in 'Anagrafica' and entered the controls in the 'frmArrivomerce' form.
Then I made the appropriate changes to the properties of the various TableGrid and buttons.
I seem to have done everything correctly and that it works well.
Too bad I can not enter the checks for dates in the search form, but it's not a problem.
I enclose the project with the changes indicated.

310

(23 replies, posted in General)

Ah OK, this simple thing was enough. It seems to work everything properly. Now I will study your project and apply what I understand in my, because I do not just have changes but I like to understand what should be done and learn. Once sold my program I will also buy the license because I'm going to use this wonderful program for future work.
If I log into something during the changes to my project I will come back to ask.
Thanks Derek, I really don't know how to thank you.

311

(23 replies, posted in General)

I don't know how to thank you Derek! There would be this little problem: in the report I reverse the Counter field with the contract number, in the upper right corner, with the customer code though it would seem that the two counters are placed in the right place (record_count_1 of the table ' ArrivoMerce' at the top Right and record_count of the table ' Anagrafica ' first field in the report, under the heading "Codice Cliente").
I could just reverse the two fields in the report but I'd like to understand why it does.
I've done some testing in your project, but I can't figure it out.

312

(23 replies, posted in General)

Hi Derek,
The operation is good, there is only one problem: if in the form frmFornitore insert a customer without assigning a number of ' arrivomerci ' is not visible in the Tablegrid of the form ' Frmstart ' and is not even searchable.
It is important because once the program is finished I will enter a database of almost 1000 customers already existing but that do not have any number of ' arrivomerci ' so I won't see any of these customers even to search for them and assign the number of ' ArriveoMerci'
Button to print could be put even in 'frmFornitore' if it could be better, I don't know.
Sorry about all the trouble and thanks.

313

(23 replies, posted in General)

Hi Derek,
' NumeroDocumento ' of the table ' Anagrafica ' is relative to the ID of the document (identity card, driver's license, passport, etc.) so it's okay that there is only one.
The database is for a second hand market, whenever a customer brings something to sell you have to generate a contract, in the field ' Arrivomerce ' There goes the number of a document with the list of items that sells generated by a management program. The Tablegrid in 'frmFornitore' is used to be able to add a number of ' arrivomerce ' each time different, because the same customer can bring things to sell several times and each time a new contract must be made.
Isn't there a way to take the data from the Tablegrid in the first form simply by selecting the line?
Your solution works but it is a bit particular how to get to print, especially for those who are not very practical computer. If I had to use it I wouldn't have been problems.

314

(23 replies, posted in General)

Hi Derek,
If there is a record of the same customer going to print me print the first record of the customer regardless of which record I select. Only if I change customer then I print another record.
In the project I'm attaching you can see for example the customer with 3800 code, I made more than one registration. It create a report Always with "Arrivo Merce" number 20999.
I just miss this thing is then the project is finished but I can't find a solution.
You have to select a row in the tablegrid of first form and click on "Stampa" that is print in Italian.
Thank you.

315

(23 replies, posted in General)

Yes it works, that's just what I wanted, select a record from the Tablegrid and print the data of the selected record. I just didn't understand what you changed to make it work.
Thanks always so much

316

(23 replies, posted in General)

That's not true, it doesn't work. It appeared to work but it doesn't work that way.

317

(23 replies, posted in General)

This I think you have solved it: I set as "components involved in the search" only the Tablegrid, seems to work, I hope I did it in the correct way.

http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=5053

318

(23 replies, posted in General)

Thanks a lot for the correction and detailed explanations.
Sorry if I ask you another question: How do i print the report I put in the project by inserting the data of the selected line in the Tablegrid? Even if I select one it puts me in the report always the data of the first record. Thank you.

319

(23 replies, posted in General)

Thanks Derek you are very kind. So is the only solution to put every field in one table?

320

(23 replies, posted in General)

Hi everyone,
I have a problem that I just can not solve: 'frmSupplier' has a button (AGGIUNGI NUMERO) that should open 'frmArrivomerce' but instead of opening this form it gives me this error "table Anagraphic has no column named 'Arrivo'" which is true but I do not understand why it gives me this error. From all the tests I have done I understand that it opens only if I remove both datapickers.
I attach the project, if someone is kind enough to give it a try. Remember that I use version 1.44
Thank you all.

321

(6 replies, posted in General)

Hello, thanks for the reply. In fact, I deleted the counter field before sending the project. However I understood that I did not understand, the project in general has many gaps. I'm covering a bit 'all the project, then once set well, I'll come back to ask for this information if I have not understood it alone. Thanks again

322

(6 replies, posted in General)

I attached the project. Thank you!

323

(12 replies, posted in General)

Well, thank you very much, that was the passage I missed, thanks to Derek for the script and all those who responded. Now it works well.

324

(6 replies, posted in General)

Thanks a lot for the answer. I analyzed your project and I understood more or less what needs to be done. Meanwhile, I had forgotten to put the counter field in action to be taken for the key that I had to do the repot and already there was this error.
But maybe I misplaced the question or maybe I still did not understand what I needed. My report in practice is a contract that I have already written in the report with the designer, what should be put in the report automatically is the registry of the client and up to here no problem. The counter I need to automatically number the various contracts. Now I do not quite understand where I should put this counter, because if I put it in the personal data table, I count every connection of a client and not of the contract.

325

(12 replies, posted in General)

Hello everyone
And thank you for all the help you're giving me. I modified the script to adjust it to my project so

procedure frmFornitore_dtData_OnChange (Sender: TObject);
begin
  frmFornitore.dtScadenza.date := frmFornitore.dtData.date + 30;
end;

begin
end.

Unfortunately id does not work and I can not understand why.
If someone has patience I am attaching my project.
Thanks again to all