Jump to content

Compare fileds help


This topic is 2891 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hello all.

I have been using FM Pro for many years now, by creating simple databases for keeping my customers info, invoicing and general office stuff.

I'm currently using FM Pro 14 Advanced.

I 'm at a dead end now, trying to edit an existing database. What I'm trying to do is:

I have a list of serial numbers of products I have received in past days. These numbers are stored in an existing value list called "Tested". I also have a field called "Unit Serial", where I punch the serial number of the incoming product. What I need is, if the entry of this field exists in the value list, to get a warning message saying that this product has been tested before. If the entry does not exist in the value list, I want to proceed with what I have to do with no warnings.

Thank you in advance for any help provided.

 

Loris

Link to comment
Share on other sites

It's not clear what you mean by "to proceed with what I have to do". If the process is scripted, you can interrupt it by showing a custom dialog if:

not IsEmpty ( FilterValues ( YourTable::Unit Serial ; ValueListItems ( Get ( FileName ); "Tested" ) ) )

Alternatively, you could validate the field by the negation of the above expression.

--
P.S. I am not sure a value list is the best place to store data.

Link to comment
Share on other sites

  • Newbies

Hello and thank you for your reply and the info provided.

"to proceed with what I have to do" is not related to the Database, sorry for the confusion. I meant reply to my customer accordingly.

I can script the process, following your suggestion.

What would you recommend for data storage?

 

Thank you once again.

 

Loris

 

 

 

Link to comment
Share on other sites

1 minute ago, LorisGreycom said:

What would you recommend for data storage?

Tables, records and fields.

I am not sure what your exact workflow is, but suppose you have a global field where you enter the serial number of a product, you could use a relationship to a table of Tests to show you any existing records in that table having the same product serial number.

Link to comment
Share on other sites

  • Newbies

You supposed correctly. It's a rather small database, of give-or-take 12,000 records of small amounts of data (fields). The serial numbers of the products in the value list so far are no more than 50.

You are right, a Table is the way to go, I should have thought of it since I have done so on a different, larger file.

 

I will give it a go and let you know how it went.

 

Thank you once again for your replies.

 

Loris

Link to comment
Share on other sites

  • Newbies

Hi again.

 

I'm sorry to say that it did not work. Not saying that you 've made a mistake, but there's must be something I'm missing. No matter what I do, even if the input in "Unit Serial" matches "Tested" or if they are different, I get the same error message.

Ah, the bad luck of the amateur.

 

Thank you anyway.

 

Loris

 

Link to comment
Share on other sites

This topic is 2891 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.